Toolkit
All tools
Dimensions and shape · Free

Aspect Ratio Calculator

Lock a ratio and solve the side you are missing, or hand over two pixel dimensions and get the exact ratio they reduce to, with the rounding, the drift, and the crop all measured rather than glossed over.

Integer maths in your browser · Nothing uploaded

At 16 to 9, the height is 1,080 pixels, giving 1,920 by 1,080.

Ratio desk

Lock the ratio, solve the side you are missing

Three of the four numbers are yours; the fourth is worked out and marked as an answer. Click any answer to type into it instead; the page will solve a different one.

Answering for
Aspect ratio

Decimals are welcome: 2.39 : 1 is stored as the 239 : 100 it exactly equals.

Pixel dimensionsHeight is the answer

Paste “1920x1080” into either box: both fill, and the ratio becomes the answer.

Exact ratioHD and UHD widescreen
Shape preview
16:9

1.778:1 · landscape

H.264 and HEVC store colour at half resolution in each direction under 4:2:0 chroma subsampling, so an odd width or height has no whole chroma sample to sit on. Most encoders refuse it outright; the rest pad silently. Snapping costs a little ratio accuracy and the panel below shows exactly how much.

Closest named ratio: 16:9, exactly this shape.

Solved height
1,920×1,080

16:9 at 1,920 px wide gives 1,920 × 1,080 at 2.07 MP, 1.778:1.

Simplified ratio
16:9
Decimal ratio
1.778:1
Reciprocal
1:0.563
Orientation
landscape
Pixels
2.07 MP
Rounding
exact
Rounding

Where the whole number came from

Pixels do not come in fractions, so an answer almost always has to move. Here is the size of that move.

Exact value
1080 px
Usable value
1,080 px
Moved by
+0 px
Ratio error
exact

Nothing had to move. 1,920 × 1,080 lands on 16:9 with both sides already whole.

Scale

Resize the whole thing, keep the shape

A percentage applied to both sides at once. The ratio survives; the rounding still has to be watched.

%
1,920 × 1,080 at 50%
960 × 540
Pixels
0.52 MP
Pixel count
25%
Ratio drift
exact
Preset library

Named ratios, grouped by what they are for

Click one to load it into the ratio boxes. The names matter: two different rectangles are both sold as “21:9”.

Video and cinema

Broadcast, streaming, and the two theatrical shapes a film is actually delivered in.

Photography and print

Sensor shapes and the print sizes a lab will cut them down to.

Social and vertical

The crops a feed keeps, and the ones it quietly trims.

Screens and panels

The shapes shipped in laptops, monitors, and tablets.

Target sizes

Real resolutions at 16:9

Common delivery sizes rather than arithmetic. The exact column is honest: several famous resolutions are not quite the ratio they are sold as.

Common resolutions close to the active aspect ratio, with pixel counts and how exactly each one matches
ResolutionMatchLoad
256 × 144144p · 0.037 MPExact
320 × 1800.058 MPExact
426 × 240240p · 0.1 MP0.156% off
640 × 360360p · 0.23 MPExact
800 × 4500.36 MPExact
854 × 480480p · 0.41 MP0.078% off
960 × 5400.52 MPExact
1,280 × 720720p · HD · 0.92 MPExact
1,366 × 768Budget laptop panel · 1.05 MP0.049% off
1,600 × 9001.44 MPExact
1,920 × 1,080Current1080p · Full HD · 2.07 MPExact
2,560 × 1,4401440p · QHD · 3.69 MPExact
3,840 × 2,1602160p · 4K UHD · 8.29 MPExact
5,120 × 2,88014.75 MPExact
7,680 × 4,3204320p · 8K UHD · 33.18 MPExact
Fit versus fill

Putting this shape inside a different one

Two shapes that do not match leave you one choice: bars around the picture, or pixels cut off it. Both costs are measured here.

Source
1,920 × 1,080
16:9 · 1.778:1
Frame it has to go into
Fit · letterbox or pillarbox

Letterbox bars of 371.3 px on the top and bottom, which is 27.5% each.

Fill · crop to cover

55% of the picture is cut off the left and right, 27.5% from each side.

On screenEmpty barsCropped away
Fitted size
1080 × 608
Frame filled
45%
Cover size
2400 × 1350
Picture kept
45%

A 1.778:1 picture in a 0.8:1 frame either keeps every pixel and leaves 55% of the frame empty, or fills the frame and throws 55% of the picture away. There is no third answer that does not stretch faces.

The ratio is not the resolution

1280 × 720 and 1920 × 1080 are the same rectangle at different sizes. Both reduce to 16:9 because 720 × 16 and 1280 × 9 are the same number. Ratio tells you the shape; resolution tells you how much detail is inside it.

Two rectangles both called 21:9

2560 × 1080 reduces to 64:27 and 3440 × 1440 reduces to 43:18. Neither is 21:9, and they are not the same as each other: 2.370:1 against 2.389:1. A mask cut for one leaves a hairline gap on the other.

Rounding is not free

Every fractional pixel has to land somewhere. A single pixel on a 1080-tall frame is under a tenth of a percent, which nobody sees; a single pixel on a 64-tall thumbnail is one and a half percent, which is a visibly squashed logo.

Every number on this page is integer arithmetic done in your browser. Nothing is uploaded, no image is read, and no request is made; the ratio is a greatest common divisor and the missing side is one division. Ratio terms are honoured to six decimal places, dimensions up to 100,000 pixels, and any answer that had to be approximated says so and shows the error it introduced.

How it works

Four numbers, three of which you choose.

An aspect ratio locks two dimensions together, so as soon as you know the ratio and one side, the other side is decided. Going the other way, two dimensions decide the ratio (by greatest common divisor, which is exact, rather than by a division that leaves you a decimal to squint at). This page does both directions and is explicit about the only place either can go wrong: pixels are whole numbers and the arithmetic frequently is not.

  1. 01

    Set the ratio, or let the page work it out

    Pick a named ratio from the library, type one in (2.39 : 1 is understood and kept as the 239 : 100 it exactly equals) or switch to “Derive ratio” and give both pixel dimensions instead. Pasting “1920x1080” into either box fills them both.

  2. 02

    Type the side you already have

    Whichever of the four boxes you type in becomes a question, and the box that was a question becomes an answer. Answers are tinted and labelled, so it is never ambiguous which number the page produced and which one you supplied.

  3. 03

    Check what the whole number cost you

    Pixels have to be integers, so the exact value, the usable value, and the ratio error between them are all shown. Turn on even-number snapping if the result is going into a video encoder, and the panel recalculates the drift.

Built for video, design, and print work

Exact reductions, real resolutions, and the cost of every rounding.

Reduced by GCD, not by decimal

1920 × 1080 becomes 16:9 because both sides divide by 120, and the divisor is shown. No answer here is ever a 1.7777777777777777 that somebody has to round themselves.

Honest about approximation

1366 × 768 really does reduce to 683:384, and the page says so rather than rounding it to 16:9 behind your back, while also telling you it sits a twentieth of a percent wide of 16:9, which is why that panel always looked slightly off.

The two rectangles called 21:9

2560 × 1080 is 64:27 and 3440 × 1440 is 43:18. They differ by nearly a percent, and the preset library keeps them apart instead of pretending both are 21:9.

Real target sizes, ranked by how exact they are

For any ratio, a table of resolutions people actually deliver, with an exact-or-not column, so you can see that 854 × 480 misses 16:9 by 0.078% and decide whether that matters.

Even-number snapping, explained

H.264 and HEVC store colour at half resolution in each direction, so odd dimensions have nowhere to put a chroma sample. Snapping is one click and the extra ratio error it introduces is measured, not hidden.

Letterbox against crop, side by side

Give a source shape and a frame shape and the page measures both costs: the exact bar thickness in pixels if you fit, and the exact percentage lost if you fill. Most calculators stop before this question.

Ratio questions

Cinema shapes, ultrawide marketing, and why encoders insist on even numbers.

What is an aspect ratio?+

It is the shape of a rectangle expressed as the relationship between its width and its height, with the size stripped out. Writing 16:9 says that for every 16 units across there are 9 down, and says nothing at all about how big the picture is. That is the whole point: shape and size are separate questions, and a ratio answers only the first. Two numbers separated by a colon is the usual form, but cinema prefers a single decimal against 1 (1.85:1), and both say the same thing.

Why are 1920 × 1080 and 1280 × 720 the same aspect ratio?+

Because both reduce to the same pair. Divide 1920 and 1080 by their greatest common divisor, 120, and you get 16 and 9. Divide 1280 and 720 by theirs, 80, and you get 16 and 9 again. The test without any division is cross-multiplication: 1920 × 720 and 1080 × 1280 are both 1,382,400, so the two rectangles are the same shape. One simply has 2.07 million pixels in it and the other 0.92 million, which is a question about detail, not about shape.

How do I work out the missing width or height?+

Multiply or divide by the ratio. To find the height at a known width, divide the width by the ratio's decimal value: 1920 ÷ (16 ÷ 9) = 1080. To find the width at a known height, multiply instead: 1080 × (16 ÷ 9) = 1920. The complication is that the answer is rarely a whole number (1920 at 2.39:1 wants a height of 803.35 pixels), and since there is no such thing as a third of a pixel, something has to give. Rounding down to 803 makes the frame slightly shorter and therefore slightly wider: 2.391:1 rather than 2.39:1, a difference of 0.043%, which this page shows rather than swallowing.

What is the difference between 16:9, 1.85:1 and 2.39:1?+

16:9 is 1.778:1 and belongs to television and streaming; it exists because it was a compromise between the 4:3 of old broadcast and the wide shapes cinema was using. 1.85:1, called “flat”, is the narrower of the two standard theatrical release shapes and is achieved by masking the top and bottom of a nearly-full frame. 2.39:1, called “scope”, is the wide one, historically produced with anamorphic lenses that squeeze a wide view onto a normal-shaped negative. The practical consequence is that a scope film on a 16:9 television has thick black bars, a flat film has thinner ones, and a television programme has none. The bars are not a fault, they are the difference between the two shapes.

Why is 2.35:1 still quoted if the standard is 2.39:1?+

Because it used to be right. CinemaScope and its successors delivered close to 2.35:1 from the 1950s until SMPTE revised the standard in 1970, mainly to hide splice damage at the frame edges, after which the projected shape became 2.39:1. Habit outlived the change, so plenty of catalogue descriptions, film-stock references, and forum posts still say 2.35 for films that are genuinely 2.39. The two are only 1.7% apart, which is about fourteen pixels of height on a 1920-wide frame: invisible on a sofa, and very visible if you are cutting a matte.

Why is a “21:9” monitor not actually 21:9?+

Because 21:9 is marketing shorthand and no shipping panel has that shape. A 2560 × 1080 ultrawide reduces to 64:27, which is 2.370:1; that number is 16:9 cubed, chosen so a 16:9 image inside it scales cleanly. A 3440 × 1440 ultrawide reduces to 43:18, which is 2.389:1. A true 21:9 would be 2.333:1, and neither panel is that. The gap between the two ultrawides is small, roughly 0.8%, but it is enough that a wallpaper or an overlay cut for one leaves a visible strip on the other.

What is the difference between letterboxing, pillarboxing, and cropping?+

They are the three ways of reconciling a picture with a frame of a different shape. Letterboxing keeps the whole picture and puts bars above and below it, which happens when the picture is wider than the frame. Pillarboxing is the same idea rotated: bars down the left and right, for a picture narrower than the frame. Cropping refuses the bars and enlarges the picture until it covers the frame, throwing away whatever falls outside: a 1920 × 1080 still filling a 1080 × 1350 feed post loses 55% of its width, well over half the shot. The fourth option, stretching, keeps everything and fits everything, at the cost of making every face in the shot the wrong shape.

Why do the stored dimensions of a video sometimes not match its shape?+

Because of pixel aspect ratio. Most modern formats use square pixels, so 1920 × 1080 stored is 1920 × 1080 displayed. Anamorphic and legacy broadcast formats do not: DVD-era 16:9 video is stored as 720 × 480 or 720 × 576, which are nothing like 16:9, and carries a flag telling the player to stretch each pixel horizontally on the way out. The same trick appears in modern anamorphic cinematography, where a 2× lens squeezes a 2.39:1 view onto a 1.19:1 negative. So a file's stored resolution is the storage aspect ratio, and only stored resolution multiplied by pixel aspect ratio gives the display aspect ratio, which is the one your eyes judge.

Why do video dimensions have to be even numbers?+

Because of chroma subsampling. Nearly all delivered video uses 4:2:0, which stores full-resolution brightness but only one colour sample for each 2 × 2 block of pixels, on the reasoning that eyes are far more sensitive to brightness detail than colour detail. A frame with an odd width or height has a leftover row or column with no complete colour block to belong to. H.264 and HEVC encoders therefore reject odd dimensions outright or pad them silently, and a padded frame is one row taller than you asked for. If the output is going anywhere near a codec, snap both sides to even numbers; the tiny ratio error that costs is far cheaper than an encode that fails at midnight.

Does resizing an image change its aspect ratio?+

Not if both sides are scaled by the same factor: that is the definition of keeping the ratio, and it is why halving 1920 × 1080 to 960 × 540 is safe. It changes when rounding forces the two sides to move by different proportions, which is most likely on small images and awkward ratios: scaling 1366 × 768 by 150% gives 2049 × 1152, and rounding 2049 up to 2050 to keep it even shifts the shape by about 0.05%. Below a few hundred pixels this stops being academic, because a single pixel is a much larger share of the total.

More focused tools, ready when you are.

Explore the growing collection for calculations, documents, writing, and everyday work.

Browse all tools