A ratio is a division
1920 by 1080 is 16:9 because dividing both by 120 gives 16 and 9. Reduction means taking the greatest common divisor and dividing out. Width and height inputs reduce to the simplest integer pair, while ratio width, ratio height and a known side derive the missing dimension, and quick picks list eight common ratios from 16:9 to 5:4.
Steps
- With a known size, enter width and height and reduce.
- With a known ratio, enter ratio width and height plus the known side.
- Derive height from width, or width from height.
- Use the quick picks for standard ratios.
- Carry the result into design specs or the CSS aspect-ratio property.
What the common ratios serve
16:9 at 1920 by 1080 covers video and heroes; 4:3 at 1024 by 768 covers slides and legacy screens; 1:1 suits social squares and avatars; 3:2 at 2000 by 1333 echoes film; 9:16 at 1080 by 1920 is vertical video; 21:9 at 2560 by 1080 is ultra-wide; 2:3 at 1000 by 1500 is portrait poster; 5:4 at 1280 by 1024 is medium format. Safe areas and type layout change with each.
Rounding when deriving
Derived sides are often fractional: 1280 at 16:9 gives a clean 720, at 3:2 it gives 853.33. Rounding breaks the exact ratio, and video encoders want even dimensions, so take the nearest even value. When deriving in the other direction, err wider rather than narrower to avoid letterbox slivers after scaling. Specs should state actual pixels, not ratio alone.
Cropping versus distortion
Placing a 4:3 asset in a 16:9 frame leaves three options: crop the top and bottom, letterbox, or stretch. Cropping loses content, letterboxing leaves bars, stretching is never acceptable. Most cases crop, so keep the subject inside the safe area. Wide artwork in a square crops the sides. Responsive layouts lock the ratio with the aspect-ratio property while object-fit cover or contain decides crop versus space.
Common problems:Resolution is not ratio: 1920 by 1080 and 1280 by 720 are both 16:9. Ratio alone leaves front-end work without numbers. Repeated rounding accumulates a one-pixel seam. High-density screens need doubled assets. And 9:16 versus 16:9 is the same shape rotated — reversing them turns the entire layout sideways.