Skip to main content
DevFreeBy Daniel BeglaryanUpdated August 2026

Aspect Ratio Calculator

Work out a missing width or height for any aspect ratio, or reduce a pixel size to its simplest ratio.

PrivateWorks OfflineNo Account
px
Result16 : 9Widescreen HD / 4K
widthKnown
1,920px
heightComputed
1,080px
1,920×1,080px

CSS: aspect-ratio: 16 / 9;

Deep dive

About Aspect Ratio Calculator.

Find the Missing Dimension for Any Aspect Ratio

Pick a target ratio — 16:9, 4:3, 1:1, 21:9, 3:2, 9:16, 2:1, the golden ratio, or your own custom W:H — enter the one dimension you already know, and the Aspect Ratio Calculator instantly returns the other. Every figure updates live as you type, and you can copy the result as plain width x height pixels or as a ready-to-paste CSS aspect-ratio declaration.

A second mode works the other way around: give it a real pixel size like 1920 x 1080 and it reduces the size to its simplest whole-number ratio using the greatest common divisor, tells you whether it is landscape, portrait, or square, and names the standard ratio when it recognizes one. It is pure arithmetic in your browser — nothing is uploaded, no account is needed, and there is no rate limit.

One honest caveat: when a ratio does not divide your dimension evenly, the exact answer is fractional. The tool rounds to whole pixels by default (real image and video dimensions are integers) but shows you the exact value and lets you turn rounding off, so you always know when a pixel has been nudged.

Common Use Cases

  • Video export: Know your target width is 1920px and need the 16:9 height — get 1080 without opening a spreadsheet.
  • Responsive layouts: Copy a valid CSS aspect-ratio value so image and embed boxes hold their shape at every screen width.
  • Social media: Size artwork for a 9:16 story, a 1:1 post, or a 4:3 thumbnail from a single known edge.
  • Print and large format: Scale a banner or poster up or down while keeping its proportions locked.
  • Simplify a size: Turn an odd pixel dimension like 1366 x 768 into a clean ratio to check what standard it actually matches.
  • Photo cropping: Plan a 3:2 or 5:4 crop and see the exact pixel dimensions before you commit in your editor.

Privacy: This calculator runs entirely in your browser. No dimensions, ratios, or values are ever sent to a server — the math happens on your device and nothing leaves it.

Three steps

How to use Aspect Ratio Calculator.

01

Enter your input

Type or paste what you want to work with.

02

Choose settings

Adjust the options for what you need.

03

Get instant results

Your result updates right on the page.

More in Dev

Related dev tools.

Why CipherForces

Privacy-first tools that work everywhere.

100% Private
From $39
Works Offline
No Account
188 Tools

Need more than a tool?

Custom websites and web apps that you own — from $799 one-time.

Explore all 188 tools