Skip to main content
RatioCalc

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

WidthHeightUse
320px256px
640px512px
1280px1024px
1920px1536px
2560px2048px
3840px3072px4K
5120px4096px
7680px6144px

Exact known sizes in this ratio

When to use 5:4

Pitfalls to avoid

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

YouTube thumbnail — 1280 × 720 (16:9)
YouTube Shorts — 1080 × 1920 (9:16)
Instagram feed post — 1080 × 1350 (4:5)
Instagram story — 1080 × 1920 (9:16)
TikTok video — 1080 × 1920 (9:16)
X/Twitter card — 1200 × 675 (16:9)

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

Look up by resolution

What aspect ratio is 1920×1080? → · Full FAQ →

Privacy: ratio math never leaves your browser. No account, no upload — the pair you type stays on-device. Shareable URLs encode only dimensions, never personal data.