Pixel Aspect Ratio Calculator
Choose a target width-to-height ratio, edit either pixel dimension, and keep the other dimension proportional automatically.
Inputs
Select the target width:height relationship. Changing it preserves the dimension you edited most recently.
Enter a positive pixel dimension using digits and an optional decimal point. Editing width makes it the anchor.
Edit height instead when vertical size is your constraint. Width will then update from the selected ratio.
Live results
The dimension you edit is held constant; the companion dimension is recalculated to preserve the selected ratio.
Enter either pixel width or pixel height to calculate proportional dimensions.
Calculated dimensions are 1920 by 1080 pixels at a 16 to 9 ratio.
How to use this pixel aspect ratio calculator
What this calculator does
This calculator keeps two pixel dimensions in a selected width-to-height proportion. It is useful when you know a target ratio such as 16:9 or 4:5 and need the matching width or height for an image, video frame, canvas, or layout. The calculation is an exact proportional identity: target ratio = pixel width ÷ pixel height. This tool treats the selected ratio as the desired ratio of the image dimensions. In formal video terminology, true pixel aspect ratio can instead describe the physical shape of an individual pixel; legacy video can therefore distinguish pixel aspect ratio, storage aspect ratio, and display aspect ratio. For most modern square-pixel image workflows, width-to-height pixel dimensions are the practical ratio people need.
When to use it
- Resize a 1920-pixel-wide video frame to a proportional height without stretching the image.
- Prepare a portrait image for a 4:5 composition while preserving the chosen width or height.
- Check the matching dimension for a web or presentation canvas that must remain at 16:9, 4:3, 1:1, or another listed ratio.
- Translate a known height into the proportional width before creating or exporting a raster asset.
How to calculate
The calculator opens with a complete demonstration: Aspect ratio is 16:9, Pixel width is 1920 px, and Pixel height is 1080 px. Its example Excel workbook is available immediately. To use your own dimensions:
- Choose the required Aspect ratio. The currently anchored dimension stays fixed while the companion dimension is recalculated.
- Edit either Pixel width or Pixel height. Whichever field you edit becomes the anchor. You do not need to type both; the calculator fills the other from the ratio.
- Read Adjusted pixel dimensions, then check Target ratio, Decimal ratio, Orientation, and Formula check.
- Select Download Excel to export the current validated state as an XLSX workbook. Reset clears the demonstration dimensions; after Reset, the export stays unavailable until you enter a valid width or height again.
Input guide
Aspect ratio is a required selection expressed as width:height. Examples include 1:1, 4:5, 4:3, 16:9, 2:1, and 9:16. Both parts must be positive. A wider first number produces a landscape proportion; a taller second number produces a portrait proportion. The common mistake is to reverse the order: 9:16 is portrait, while 16:9 is landscape. For web layout terminology, the W3C CSS Images specification describes natural aspect ratio as width divided by height.
Pixel width accepts a positive decimal number in pixels, up to 1,000,000,000. Use digits and an optional period as the decimal separator, for example 1920 or 2048.5. Grouping commas and scientific notation are rejected so an ambiguous pasted value cannot be silently reinterpreted. At least one pixel dimension must be present. Increasing width while width is the anchor increases the calculated height proportionally. A frequent mistake is entering a physical size in inches or centimeters; this field is only a pixel dimension.
Pixel height follows the same format and range as width. A realistic example is 1080. Editing height makes height the anchor and recalculates width. Increasing height therefore increases the matching width for a fixed ratio. Although the calculator can show a fractional pixel result for exact proportional math, actual raster files normally require whole pixel counts; choose an appropriate rounding strategy in the application where you create the file.
Output guide
Adjusted pixel dimensions is the paired width × height result in pixels. It is an exact proportional conversion before any application-specific integer rounding. Target ratio repeats the selected width:height relationship so you can verify the intended format. Decimal ratio is target width divided by target height, shown to six decimal places; values above 1 are wider than tall, values below 1 are taller than wide, and 1 is square. Orientation classifies the selected ratio as Landscape, Portrait, or Square. Formula check shows the current calculated width divided by height and should agree with the decimal ratio within display rounding. These outputs are conversions and identities, not recommendations about image quality, compression, or resolution suitability.
Worked example
With the startup values, the target is 16:9 and width is 1920 px. The matching height is 1920 × 9 ÷ 16 = 1080 px. Dividing the resulting dimensions gives 1920 ÷ 1080 = 1.777778 at six displayed decimal places, so the result is 1920 × 1080 px in Landscape orientation. If you keep 16:9 but change height to 720 px, height becomes the anchor and width becomes 720 × 16 ÷ 9 = 1280 px.
Learn more
Aspect-ratio terminology can change with context. The MDN aspect ratio glossary explains the general width-to-height relationship used on the web. For legacy and broadcast video, the ITU-R BT.601 recommendation documents digital television systems where non-square-pixel workflows matter, while the Library of Congress moving-image quality guidance gives concrete examples of square- and non-square-pixel frame dimensions.
How the proportional calculation works
The core relationship is simple: width divided by height must equal the selected ratio's first number divided by its second number. When width is the anchor, height = width × ratio height ÷ ratio width. When height is the anchor, width = height × ratio width ÷ ratio height. Because this is a one-to-one proportional relationship, the numeric result and formula check provide a direct way to verify the calculation.
Changing the selected ratio changes the slope of that relationship. For example, a fixed 1200 px width produces 675 px at 16:9 but 960 px at 5:4. Conversely, a fixed 1200 px height produces 2133.333333 px at 16:9 and 1500 px at 5:4. If your destination requires integer pixels, rounding one dimension slightly changes the exact decimal ratio; that is a practical raster constraint rather than a failure of the proportional formula.
Common interpretation mistakes
Do not confuse aspect ratio with pixel density. A 1920 × 1080 image and a 3840 × 2160 image share the same 16:9 ratio even though the latter contains four times as many pixels. Ratio also does not determine sharpness, bitrate, compression quality, color depth, or physical print size. Finally, in older video systems, the ratio of stored pixel counts can differ from the displayed image ratio because individual pixels may be non-square. If you are working with archival SD video, codec sample-aspect-ratio metadata, or broadcast masters, use the relevant format specification rather than assuming that stored width ÷ stored height alone determines final display shape.