Pixels or any unit, as long as width and height use the same one.
Aspect ratio
16:9
1,920 × 1,080 in lowest terms.
A size of 1,920 × 1,080 has an aspect ratio of 16:9.
Fill in one of the two new sizes only.
New height
720
New size 1,280 × 720, same aspect ratio as 1,920 × 1,080.
Resizing 1,920 × 1,080 to 1,280 × 720 keeps the aspect ratio.
Aspect Ratio Calculator by Ivorytool, free tools that run in your browser.