Skip to content
1440px

4:5 Aspect Ratio

Exact 4:5 resolutions, the CSS you need, and where the ratio actually shows up.

Portrait social · portrait
4:5 = 0.8

Smallest whole-pixel size 4 × 5. In CSS: aspect-ratio: 4 / 5. Rotated it becomes 5:4.

Where 4:5 is used

Instagram portrait posts, Facebook feed images.

The tallest ratio Instagram shows uncropped in the feed, which makes it the highest-real-estate option for organic reach.

4:5

Rendered live with aspect-ratio: 4 / 5.

4:5 resolutions

Every size below is exactly 4:5 — no rounding. Sizes marked as a standard are named display resolutions.

Exact 4:5 pixel dimensions
ResolutionWidthHeightMegapixelsStandard
160 × 2001602000.03
164 × 2051642050.03
168 × 2101682100.04
172 × 2151722150.04
176 × 2201762200.04
180 × 2251802250.04
184 × 2301842300.04
188 × 2351882350.04
192 × 2401922400.05
196 × 2451962450.05
200 × 2502002500.05
204 × 2552042550.05
208 × 2602082600.05
212 × 2652122650.06
216 × 2702162700.06
220 × 2752202750.06
224 × 2802242800.06
228 × 2852282850.06
232 × 2902322900.07
236 × 2952362950.07
240 × 3002403000.07
320 × 4003204000.13
480 × 6004806000.29
640 × 8006408000.51
720 × 9007209000.65
800 × 100080010000.8
960 × 120096012001.15
1080 × 1350108013501.46
1200 × 1500120015001.8
1280 × 1600128016002.05
1440 × 1800144018002.59
1600 × 2000160020003.2
1920 × 2400192024004.61
2048 × 2560204825605.24
2560 × 3200256032008.19
3200 × 40003200400012.8
3840 × 48003840480018.43
5120 × 64005120640032.77
7680 × 96007680960073.73

Using 4:5 in CSS

CSS
/* Modern — one line */
.box { aspect-ratio: 4 / 5; }

/* With a fixed width */
.box { width: 100%; max-width: 800px; aspect-ratio: 4 / 5; }

/* Legacy padding-top hack, if you still need it */
.box-legacy { position: relative; }
.box-legacy::before { content: ""; display: block; padding-top: 125%; }
.box-legacy > * { position: absolute; inset: 0; }

Questions about 4:5

What resolution is 4:5?

4:5 is a ratio, not a fixed resolution — any size where width ÷ height equals 0.8 qualifies. The smallest whole-pixel pair is 4 × 5, and common ones include 640 × 800, 720 × 900, 800 × 1000, 960 × 1200.

What is 4:5 used for?

Instagram portrait posts, Facebook feed images.

How do I set 4:5 in CSS?

Use the aspect-ratio property: aspect-ratio: 4 / 5;. The element then keeps that shape at any width. It is supported in every current browser.

What is 4:5 the other way round?

Rotated to landscape it becomes 5:4 — the same shape, turned 90 degrees.

How do I calculate a 4:5 height from a width?

Multiply the width by 1.25. For example 1080 × 1.25 = 1350. The calculator does it both directions.

Other aspect ratios

All resolutions on this page are computed directly from the ratio, so every pair is exact. See methodology.