Aspect ratio describes shape, not size: 1920 × 1080 and 1280 × 720 are both 16:9. Common ratios include 16:9 for video and widescreen, 4:3 for older screens and many photos, 1:1 for square posts, 4:5 for portrait social posts and 9:16 for stories and short vertical video.
When an image is shown in a space with a different ratio, it is either cropped or letterboxed with empty bars. Designing for the target ratio from the start avoids awkward crops.
Example
To find the height of a 16:9 image that is 1280 pixels wide: 1280 × 9 ÷ 16 = 720.