📐 Aspect Ratio Calculator
Calculate and lock aspect ratios, preview dimensions visually, compute PPI, and scale resolutions.
Last updated: November 8, 2026 · By the BoltQuickTools team
⚖ Ratio Calculator
🎚 Preset Ratios
💻 Common Resolutions
👁 Visual Preview
📏 Scale Calculator
Enter current dimensions above, then set a target width or height to get the scaled result.
🔎 Pixel Density (PPI / DPI)
Uses the width and height entered above plus the diagonal screen size to compute PPI.
From pixel dimensions to a ratio, and back
You have an image at 4032 by 3024 and need the matching height for a 1280-wide slot, or you want to know whether a monitor is really 16:9. This page does that arithmetic for designers, video editors and anyone comparing screens.
The sections on the page
- Ratio Calculator: enter Width and Height and the reduced ratio appears below. Tick Lock ratio to have the other value fill in as you type. Copy Dimensions copies text like
1920 x 1080 (16:9), and Swap W/H flips portrait and landscape. - Preset Ratios and Common Resolutions: one-click starting points such as 4:3 or 2560 x 1440.
- Visual Preview: a rectangle of the same shape, fitted inside a 300 by 160 box.
- Scale Calculator: enter Target W or Target H to get the other side and a percentage.
- Pixel Density: enter Diagonal (inches) to get PPI from the width and height above.
Worked results
| Width x Height | Ratio shown |
|---|---|
| 1920 x 1080 | 16:9 |
| 1920 x 1200 | 8:5 |
| 1080 x 1350 | 4:5 |
| 2560 x 1080 | 64:27 |
| 3440 x 1440 | 43:18 |
| 1366 x 768 | 683:384 |
Scaling 4032 x 3024 with a Target W of 1280 gives 1280 x 960 at 31.7%. A 2560 x 1440 screen with a 27-inch diagonal gives 108.79 pixels per inch, a diagonal of 2937 px, and a physical size of 23.53" x 13.24".
Where the numbers can surprise you
- Ratios are exact. Screens sold as "21:9" are really 64:27 or 43:18, and 1366 x 768 is only close to 16:9. The tool reports what the pixels say, not the marketing name.
- Locked values round to whole pixels. At 16:9, a width of 1000 gives a height of 563 (562.5 rounded). The readout then shows
1000:563, because it reduces the pair of numbers actually in the boxes. - Ratio presets turn the lock on. If Width is filled in, it stays and Height is recalculated. If Width is empty, it becomes the first ratio number times 120, so 16:9 fills in 1920 x 1080 and 4:3 fills in 480 x 360.
- Lock ratio needs both values. Tick it with an empty box and it unticks itself.
- The Scale result does not follow later edits. If you change Width or Height, retype the target to refresh it.
- Decimals round inside the reduction, so 19.5 x 10 shows the awkward
1.95:1. Use whole pixels. - PPI assumes square pixels and takes your diagonal at face value. Advertised sizes are often rounded, so treat the second decimal as approximate.
Does this resize my image?
No, it only calculates. To produce a resized file, take the numbers to the image resizer. If the target shape differs from the source, you will also have to crop or letterbox, because scaling alone cannot change the ratio.
Can I use the result in CSS?
Yes. Write the two numbers from the readout into the aspect-ratio property, for example aspect-ratio: 16 / 9;. For sizing the element itself in other units, the CSS unit converter may help.
Is PPI the same as print DPI?
This calculator is for screens, where the physical size is fixed and you solve for density. For print you usually choose the density instead: 3000 pixels printed at 300 DPI comes out 10 inches wide.