Aspect ratio calculator

Resize a frame to a delivery ratio, matte one ratio inside another, and desqueeze anamorphic footage. Every size is rounded the way your codec needs.

Round calculated sizes to
Multiple of 2, the minimum for 4:2:2 and 4:2:0 video

Resize to a ratio

Type one side and the other follows the ratio. Unlock to set both freely and read off the ratio you have.

Ratio

Landscape

Vertical and square

Locked. The height follows the ratio.

Guides on the preview
Frame
3840 × 1606
Ratio
2.391:1Exactly 1920:803
Drift from target
+0.04%Target 2.390:1, after rounding to even
Pixels
6.17 MP6,167,040 pixels
Closest named ratio
2.39:1Scope

Letterbox, pillarbox or crop

Put a picture of one ratio into a frame of another: fit it with bars, or fill the frame and see what is cut.

How it goes in
The whole picture shows; the rest of the frame is black.

Amber outline: the picture. Black: the bars.

Picture area
3840 × 1606
Bars
277 px top and bottomLetterbox
Picture ratio
2.391:1After rounding
Frame used
74.4%

Anamorphic desqueeze

An anamorphic lens squeezes the scene across the sensor. Enter what you recorded and the squeeze to see the picture your audience gets.

Squeeze factor
Classic scope on a 4:3 area
As recorded
Desqueezed
Desqueezed ratio
2.67:1Not a named ratio; crop or matte to deliver
Stretch the width
5760 × 2160Keeps every recorded line
Squash the height
2880 × 1080Keeps every recorded column
Crop for 2.39:1
2582 × 2160Of the recorded frame. Desqueezes to 5164 × 2160
In a UHD frame
3840 × 1440With 360 px bars top and bottom

Delivery ratios at common widths

The height of each ratio at the widths you deliver most, rounded to even.

Frame height for each named ratio at 1920, 3840 and 4096 pixels wide
RatioNameHD 1920UHD 3840DCI 4096
1.33:14:3 television1920 × 14403840 × 28804096 × 3072
1.37:1Academy1920 × 13963840 × 27924096 × 2978
1.43:1IMAX 15/701920 × 13423840 × 26864096 × 2864
1.50:13:2 full frame1920 × 12803840 × 25604096 × 2730
1.66:1European widescreen1920 × 11523840 × 23044096 × 2458
1.78:116:9 HD and UHD1920 × 10803840 × 21604096 × 2304
1.85:1Flat1920 × 10383840 × 20764096 × 2214
1.90:1DCI full container1920 × 10123840 × 20264096 × 2160
2.00:12:1 Univisium1920 × 9603840 × 19204096 × 2048
2.20:170 mm1920 × 8723840 × 17464096 × 1862
2.35:1Scope, older spec1920 × 8183840 × 16344096 × 1742
2.39:1Scope1920 × 8043840 × 16064096 × 1714
2.76:1Ultra Panavision 701920 × 6963840 × 13924096 × 1484

How the figures are worked out

A ratio is width divided by height. With the width locked, height is width ÷ ratio; with the height locked, width is height × ratio. The result is then rounded to the nearest multiple you chose. Even numbers are the minimum for 4:2:2 and 4:2:0 video, which halve the colour resolution; mod 8 and mod 16 suit encoders that work in 8 or 16 pixel blocks.

Rounding moves the ratio slightly, so the drift from your target is shown: 3840 × 1608 is 2.388:1, 0.08% under 2.39.

A letterbox keeps the frame's width and sets the picture height to frame width ÷ picture ratio; the bars are what is left, split between top and bottom. Any odd pixel goes to the bottom bar. A pillarbox does the same across the width. Filling instead scales the picture to cover the frame and cuts the overflow: the share kept is frame ratio ÷ picture ratio of the width (or the inverse of the height).

Desqueezing multiplies the recorded width by the squeeze factor: displayed ratio = recorded ratio × squeeze. 2.0× on a 4:3 area is 2.67:1.

Questions

Is 2.39 the same as 2.35 or 2.40?
They name the same widescreen look. 2.35:1 is the older figure; the projection standard changed in 1970 and the DCI scope container today is 2048 × 858, which is 2.39:1. 2.40 is the same ratio rounded once more.
What size is 2.39 in a UHD timeline?
3840 wide by 1607 high to the nearest pixel, which rounds to 1606 at even and 1608 at mod 8. With 1608 the bars are 276 pixels top and bottom.
Why round to even, mod 8 or mod 16?
4:2:2 and 4:2:0 video store colour at half the width (and 4:2:0 at half the height), so odd sizes cannot be encoded cleanly. Many encoders and hardware decoders work in 8 or 16 pixel blocks and pad anything else.
Should I desqueeze by stretching the width or squashing the height?
Stretching keeps every recorded line and gives the larger master. Squashing keeps the recorded width and is lighter to play back. The picture's shape is the same either way.