Skip to content
1440px

9:21 Aspect Ratio

Exact 9:21 resolutions, the CSS you need, and where the ratio actually shows up.

Extra tall phone · portrait
9:21 = 0.4286

Smallest whole-pixel size 3 × 7. In CSS: aspect-ratio: 9 / 21. Rotated it becomes 21:9.

Where 9:21 is used

Sony Xperia, a handful of cinema-oriented phones.

Chosen so anamorphic footage plays full-screen without letterboxing.

9:21

Rendered live with aspect-ratio: 9 / 21.

9:21 resolutions

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

Exact 9:21 pixel dimensions
ResolutionWidthHeightMegapixelsStandard
162 × 3781623780.06
165 × 3851653850.06
168 × 3921683920.07
171 × 3991713990.07
174 × 4061744060.07
177 × 4131774130.07
180 × 4201804200.08
480 × 112048011200.54
720 × 168072016801.21
960 × 224096022402.15
1080 × 2520108025202.72
1200 × 2800120028003.36
1440 × 3360144033604.84
1920 × 4480192044808.6
3840 × 89603840896034.41

Using 9:21 in CSS

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

/* With a fixed width */
.box { width: 100%; max-width: 960px; aspect-ratio: 9 / 21; }

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

Questions about 9:21

What resolution is 9:21?

9:21 is a ratio, not a fixed resolution — any size where width ÷ height equals 0.4286 qualifies. The smallest whole-pixel pair is 3 × 7, and common ones include 720 × 1680, 960 × 2240, 1080 × 2520, 1200 × 2800.

What is 9:21 used for?

Sony Xperia, a handful of cinema-oriented phones.

How do I set 9:21 in CSS?

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

What is 9:21 the other way round?

Rotated to landscape it becomes 21:9 — the same shape, turned 90 degrees.

How do I calculate a 9:21 height from a width?

Multiply the width by 2.333333. For example 1080 × 2.333333 = 2520. 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.