5:4 Aspect Ratio Calculator
5:4 (1.25:1) — the near-square that powered early LCDs at 1280×1024. Solve its partner dimension.
5:4 (1.25:1) is subtly taller than a square — 1280×1024 is the iconic 5:4. It still shows up in industrial panels, some portrait prints (10×8 is 5:4) and legacy office displays. Mistaking 5:4 for 4:3 crops ~5% of width silently.
1920 × 1536
Exact ratio: 5:4 · CSS: aspect-ratio: 5 / 4 · padding-top fallback: 80.00%
Formula
height = width × 4 ÷ 5
width = height × 5 ÷ 4
// padding-top fallback: 80.00% — keeps layout stable before the image loads
aspect-ratio: 5 / 4 — modern replacement for the padding hack
All math runs locally in your browser. No upload. Type either side, the other solves live — and the URL updates so you can share an exact pair (?w=1920&rw=5&rh=4) or bookmark a preset.
Common 5:4 resolutions
| Width | Height | Use |
|---|---|---|
| 320px | 256px | |
| 640px | 512px | |
| 1280px | 1024px | |
| 1920px | 1536px | |
| 2560px | 2048px | |
| 3840px | 3072px | 4K |
| 5120px | 4096px | |
| 7680px | 6144px |
Exact known sizes in this ratio
- 1280×1024 — 1280×1024 SXGA 5:4 (Legacy 5:4 LCDs, industrial panels)
When to use 5:4
- Legacy 1280×1024 LCD masters
- 10×8 and 20×16 prints (5:4)
- Industrial / CCTV near-square panels
Pitfalls to avoid
- Treating 1280×1024 as 4:3 — it is 5:4, not 4:3 (1024×768)
- Saving a square icon at 5:4 leaves a subtle squish
CSS snippet
Modern:
.frame { aspect-ratio: 5 / 4; width: 100%; overflow: hidden; }
.frame > img { width: 100%; height: 100%; object-fit: cover; } Legacy padding hack (for very old browsers):
.wrap { position: relative; width: 100%; padding-top: 80.00%; }
.wrap > * { position: absolute; inset: 0; } Pair with object-fit: contain to letterbox without cropping, or cover to fill and crop safely.
Platform reference
Frequently asked
Is 1280×1024 4:3?
No — it is 5:4. 1024×768 would be 4:3 at that width.
What prints are 5:4?
8×10 is the classic — and 16×20, 20×16, 10×8. All divide to 1.25.
How different is 5:4 from 1:1?
At the same height, 5:4 is 25% wider than 1:1 — subtle but visible.
Tip: add ?w=1920 or ?h=1080 to this URL to prefill the calculator — useful for linking from a spec doc.
Other ratios
- 16:9 Aspect Ratio Calculator
- 4:3 Aspect Ratio Calculator
- 1:1 Square Calculator
- 9:16 Vertical Calculator
- 21:9 Ultrawide Calculator
- 3:2 Aspect Ratio Calculator
- 16:10 Aspect Ratio Calculator
- 4:5 Portrait Calculator
Look up by resolution
- 1920×1080 — 1920×1080 Full HD
- 1280×720 — 1280×720 HD
- 3840×2160 — 3840×2160 4K UHD
- 2560×1440 — 2560×1440 QHD
- 1366×768 — 1366×768 WXGA
- 3440×1440 — 3440×1440 UW-QHD
What aspect ratio is 1920×1080? → · Full FAQ →