Aspect Ratio Calculator — 16:9, 4:3, Width Height & Print Size | LazyTools

Aspect Ratio Calculator

Calculate missing width or height from any aspect ratio. Convert pixels to ratio. Find print size at any DPI, calculate pixel density (PPI), and get exact Fit vs Fill dimensions with padding and crop values. 20+ ratio presets for screens, social media, film and photography.

5 calculators in one 20+ ratio presets PPI & print size Fit vs Fill math

Aspect Ratio Calculator Tool

Enter an image's width and height to find its aspect ratio, simplified form, decimal value and nearest standard ratio.

pixels
pixels
Aspect ratio:
Simplified
Decimal
Nearest standard
Megapixels
CSS padding-top
Your ratio

Enter an aspect ratio and one known dimension — the other is calculated instantly.

:
pixels
calculated height

Resize an image proportionally. Enter original dimensions and one new dimension — the other scales automatically.

Original dimensions
pixels
pixels
Target (enter one)
pixels
pixels
Scale factor
Percentage
Original ratio

Calculate the pixel density (PPI — pixels per inch) of any display or image. Enter resolution and physical size.

pixels
pixels
inches (diagonal)
pixels per inch (PPI)
pixels per cm (PPCM)
Diagonal pixels
Total megapixels
Retina threshold
~220 PPI (iOS)

Find the print size (in inches and cm) of any pixel-dimensioned image at standard DPI values. 300 DPI is the professional print standard.

pixels
pixels
Print size at standard DPI values
Quick reference: 72 DPI = web/screen · 96 DPI = Windows screen · 150 DPI = draft print · 300 DPI = professional print · 600 DPI = fine art / archival

Calculate exact Fit (contain) and Fill (cover) dimensions. Fit preserves the whole image with padding; Fill covers the target frame and may crop.

Source image
pixels
pixels
Target frame
pixels
pixels
Fit (contain)
Scaled size:
Padding X: px each side
Padding Y: px each side
CSS: object-fit: contain
Fill (cover)
Scaled size:
Crop X: px each side
Crop Y: px each side
CSS: object-fit: cover
⭐ User Ratings

Rate this tool

4.8
Based on 11,284 ratings
5
8,689
4
1,580
3
564
2
226
1
225
Was this aspect ratio calculator helpful?
✅ Thank you for your rating!
📊 Reference

Common aspect ratios — complete reference guide

Every major use case has its own standard aspect ratio. This table covers screens, video, photography, social media and print — with example resolutions and the contexts where each ratio appears.

Ratio Decimal Common resolutions Used in
16:91.7781280×720, 1920×1080, 3840×2160HDTV, YouTube thumbnails, most laptop and desktop monitors, video calls
4:31.3331024×768, 1400×1050, 2048×1536Legacy TV, iPad (original), presentations, some compact cameras
1:11.0001080×1080, 1200×1200, 2048×2048Instagram square posts, profile pictures, album art, product images
3:21.5001080×720, 1800×1200, 4500×300035mm film, DSLR cameras (most Canon, Nikon, Sony), standard prints (6×4)
2:30.667720×1080, 1200×1800, 2000×3000Portrait photography, Instagram portrait posts (rotated 3:2)
9:160.5631080×1920, 720×1280Instagram Stories, TikTok, Reels, YouTube Shorts, mobile video
4:50.8001080×1350, 1600×2000Instagram portrait posts (max feed size), Facebook portrait ads
21:92.3332560×1080, 3440×1440, 5120×2160Ultrawide monitors, cinematic letterbox video, gaming displays
5:41.2501280×1024, 2500×2000Some older desktop monitors, standard 5×4 print format
17:91.8892048×1080DCI 2K cinema projection standard
1.85:11.8501998×1080Flat (standard 35mm theatrical film — most Hollywood releases)
2.39:12.3902048×858, 4096×1716CinemaScope / anamorphic widescreen (action films, blockbusters)
1.43:11.43011080×7680IMAX 15-perf (The Dark Knight, Interstellar IMAX sequences)
32:93.5563840×1080, 5120×1440Super ultrawide monitors, Samsung Odyssey Neo G9
3:40.750768×1024, 1536×2048iPad tablets (most models), standard A4 document portrait
✦ Features

5 calculators in one — everything about image dimensions

Most aspect ratio calculators only solve for one missing dimension. This tool covers the full dimension workflow for designers, photographers, video editors, developers and social media managers.

Pixels → Ratio (with GCD simplification)
Enter any width and height — get the simplified ratio (e.g. 1920×1080 → 16:9), decimal form (1.778), CSS padding-top hack, megapixel count, and a visual shape comparison to common ratios.
Ratio → Missing dimension
Enter a ratio (16:9, 4:3, or any custom ratio) and one known dimension — get the missing width or height instantly. 20+ ratio presets from screens, social media, film and photography.
Scale existing dimensions proportionally
Enter original dimensions and a new width or height — the other dimension scales proportionally to maintain the aspect ratio. Shows scale factor and percentage change.
PPI / pixel density calculator
Calculate pixels per inch for any display or image. Enter resolution and diagonal screen size to get PPI, PPCM, megapixels and a quality rating (SD, HD, Full HD, Retina, HiDPI).
Print size at any DPI
Convert pixel dimensions to physical print sizes in inches and centimetres at 72, 96, 150, 300 and 600 DPI. Know immediately whether your image has enough resolution for professional print quality.
Fit vs Fill calculator with padding and crop values
Enter a source image size and a target frame — get exact Fit (contain) and Fill (cover) dimensions, with the precise padding or crop values needed on each axis. Essential for CSS, video editing and print layouts.
📖 How to use

How to use this aspect ratio calculator — step by step

1
Choose your calculator mode
Select the tab that matches your goal. Use Pixels → Ratio to find what ratio an image is. Use Ratio → Dimension to find a missing width or height. Use Scale to proportionally resize existing dimensions. Use PPI for screen density, Print Size for physical print output, or Fit vs Fill for layout math.
2
Enter your values
Type in the dimensions, ratio or size you know. In Pixels → Ratio enter width and height in pixels — e.g. 1920 and 1080. In Ratio → Dimension pick a preset ratio or enter your own, then enter one known dimension. In Print Size enter your pixel dimensions and see results at all DPI values simultaneously.
3
Click Calculate and read your results
Results appear in the card below the inputs. The Pixels → Ratio calculator shows your simplified ratio (e.g. 16:9), decimal form, nearest standard ratio, megapixel count, CSS padding-top value, and a visual shape preview comparing your ratio against common formats.
4
Copy values ready to use
Each output chip has a Copy button — click it to copy the ratio, decimal or CSS value directly to your clipboard. Paste the ratio into design software, the CSS value directly into your stylesheet, or the missing dimension into your image editor.
5
Apply the dimensions with the Image Resizer
Once you have the right dimensions, head to the Image Resizer & Cropper to resize your image exactly. Enter your calculated width and height, choose output format and quality, and download — no watermark, no upload.
🏆 Why LazyTools

How this aspect ratio calculator compares

Most free aspect ratio calculators do one thing — solve for a missing dimension. Very few combine ratio conversion, PPI, print sizing and Fit vs Fill math in a single tool. Here is how LazyTools stacks up.

Feature LazyTools ✦ Calculator Soup Kapwing aspectratiocalculator.com
Pixels → simplified ratio (GCD)✔ Yes✔ Yes✘ No✔ Yes
Solve missing width or height✔ Yes✔ Yes✔ Yes✔ Yes
Visual shape preview + comparisons✔ Yes✘ No✘ No✔ Yes
20+ ratio presets with descriptions✔ YesPartialPartial✔ Yes
CSS padding-top trick output✔ Yes✘ No✘ No✘ No
Scale existing dimensions proportionally✔ Yes✔ Yes✘ No✘ No
PPI / pixel density calculator✔ Yes✘ No✘ No✘ No
Print size at 7 DPI values✔ Yes (72–600 DPI)✘ No✘ No✘ No
Fit vs Fill (contain / cover) math✔ Exact px values✘ No✘ No✘ No
Megapixel count output✔ Yes✘ No✘ No✘ No
Copy-ready output values✔ Yes✘ No✘ No✘ No
📖 Complete guide

The Complete Guide to Aspect Ratios — Screens, Social Media, Video and Print

Aspect ratio is one of the most fundamental concepts in visual media — it defines the shape of any rectangular frame, from a phone screen to a cinema screen to an Instagram post. Understanding aspect ratios lets you resize images without distortion, choose the right format for every platform, and communicate dimensions clearly across design, development, photography and video workflows.

What is an aspect ratio?

An aspect ratio describes the proportional relationship between the width and height of a rectangle. It is expressed as two numbers separated by a colon — 16:9, 4:3, 1:1 — where the first number represents the width and the second represents the height. Crucially, aspect ratio describes shape, not size. A 1280×720 image and a 3840×2160 image are different sizes but share the same 16:9 ratio — they have identical shapes at different scales.

The same principle applies to decimal ratios. Dividing 16 by 9 gives 1.778 — this is the decimal form of 16:9. Decimal ratios are useful in CSS (where aspect-ratio: 16/9 is a property), in programming, and when comparing ratios that cannot be easily simplified to whole numbers.

How to calculate aspect ratio from pixel dimensions

To find the aspect ratio of any image, divide both the width and height by their greatest common divisor (GCD) — the largest whole number that divides both without a remainder. For a 1920×1080px image, the GCD of 1920 and 1080 is 120. Dividing both gives 16:9. The Pixels → Ratio calculator above does this automatically for any dimensions using the Euclidean algorithm.

Not every pixel dimension simplifies neatly to a recognisable ratio. A 1366×768 display has a GCD of 2, giving 683:384 — a near-16:9 ratio but not exactly. The calculator shows both the exact simplified ratio and the nearest standard ratio (16:9 in this case), so you know what you are working with.

The 16:9 ratio — why it dominates modern screens

The 16:9 widescreen ratio became the global standard for HD television in the 1990s and has since spread to laptops, desktop monitors, projectors, video games, streaming video, YouTube and most video conferencing platforms. Its prevalence is a practical result of human visual perception — our horizontal field of vision is wider than our vertical field, making wider frames feel more natural for video content.

Common 16:9 resolutions form a clean progression: 1280×720 (HD), 1920×1080 (Full HD), 2560×1440 (QHD), 3840×2160 (4K UHD), 7680×4320 (8K). Each step quadruples the total pixel count while maintaining the same shape. YouTube thumbnails must be 16:9 at 1280×720px minimum — smaller submissions appear blurry in search results and on connected TVs. Use the Ratio → Dimension calculator to find any 16:9 size instantly.

Social media aspect ratios — platform-by-platform guide

Every social media platform has specific aspect ratio requirements. Instagram accepts images from 1:1 (square) to 4:5 (portrait) to 1.91:1 (landscape) in the feed, with 9:16 for Stories and Reels. The 4:5 portrait ratio at 1080×1350px occupies the maximum possible feed space — about 33% more vertical real estate than a square post — making it the choice for high-visibility content.

TikTok, Instagram Reels and YouTube Shorts all use the 9:16 vertical ratio at 1080×1920px. This is the inverse of 16:9 — the same shape rotated 90 degrees. When shooting video on a smartphone held vertically, you are naturally capturing 9:16 content. Twitter/X post images display at 16:9 (1200×675px) in the feed, with a 3:1 ratio (1500×500px) for header banners. Facebook cover photos use a non-standard ~2.63:1 ratio (820×312px).

Photography aspect ratios — cameras and prints

Most DSLR and mirrorless cameras capture images at a 3:2 ratio — the aspect ratio of 35mm film, which has been the standard for over 50 years. A 24MP full-frame sensor captures at roughly 6000×4000px, which is 3:2. Printing a 3:2 image at standard 6×4 inch (15×10cm) print size preserves the ratio perfectly — one of the few cases where camera ratio and print size match without cropping.

Standard print sizes do not always match common camera ratios. Printing a 3:2 camera image to 8×10 inches requires cropping — the 8:10 ratio (4:5) is different from 3:2. Printing to 4×6 preserves the ratio; printing to 5×7, 8×10 or A4 all require composition-level decisions about what to crop. The Fit vs Fill calculator makes this explicit: it shows exactly how much of the image is cropped or padded for any target size.

Pixel density (PPI) — what it means for quality

PPI (pixels per inch) measures how densely pixels are packed into a display or print. A 1920×1080 resolution on a 27-inch monitor produces about 81 PPI — comfortable for desktop use at normal viewing distance. The same resolution on a 5.5-inch phone screen would give about 401 PPI — Apple's "Retina" threshold (the point at which individual pixels become indistinguishable at typical viewing distance) is approximately 220 PPI for phone screens and 110 PPI for desktop monitors.

For print, PPI and DPI are closely related. Professional offset printing uses 300 DPI (dots per inch), which requires 300 pixels for every inch of printed size. A 3000×2000px image prints at 10×6.67 inches at 300 DPI — large enough for magazine use.

At 72 DPI (typical web resolution), the same 3000×2000px image would print at over 40 inches wide — but with large, clearly visible pixels. Use the Print Size calculator above to find the maximum print size your image supports at each quality level.

The CSS padding-top trick for maintaining aspect ratio

Web developers frequently need elements to maintain a specific aspect ratio as they scale with the browser window. The classic CSS approach uses a percentage-based padding-top on an empty element — since padding percentages are calculated from the parent's width, not height, this creates a proportional relationship. For a 16:9 ratio, padding-top: 56.25% (9÷16×100). Modern browsers also support the native aspect-ratio: 16/9 CSS property directly, which is cleaner and better supported. The Pixels → Ratio calculator provides both values ready to copy.

Fit vs Fill — contain and cover in image layouts

When placing an image into a frame of different proportions, two strategies exist: Fit (contain) and Fill (cover). Fit scales the image to be as large as possible while showing the complete image — if the aspect ratios differ, letterbox bars (horizontal empty space) or pillarbox bars (vertical empty space) fill the remaining area. Fill scales the image to completely cover the frame with no empty space — if the aspect ratios differ, the image is cropped, with edges trimmed on the longer axis.

Neither approach is universally correct — the right choice depends on context. Product images in e-commerce grids typically use Fit to show the complete product without unexpected cropping. Hero images on websites typically use Fill to cover the full browser width. Video thumbnails use Fill because the platform defines a fixed display ratio. Profile pictures use Fill with a circular mask. The Fit vs Fill calculator shows the exact scaled dimensions and the amount of padding or cropping on each axis, so you can make the right decision for each use case.

Frequently asked questions

Divide both width and height by their greatest common divisor (GCD). For 1920×1080, the GCD is 120. Dividing both gives 16:9. You can also express it as a decimal: 1920÷1080 = 1.778. Use the Pixels → Ratio tab above to calculate instantly for any dimensions — it also shows the nearest standard ratio and a CSS padding-top value.
16:9 is a ratio — many different pixel sizes share this ratio. Common 16:9 resolutions: 1280×720 (HD), 1920×1080 (Full HD), 2560×1440 (QHD), 3840×2160 (4K), 7680×4320 (8K). YouTube thumbnails should be 1280×720px minimum. Use the Ratio → Dimension calculator to find the height for any 16:9 width, or the width for any 16:9 height.
Instagram supports multiple aspect ratios in the feed. Square posts use 1:1 (1080×1080px). Portrait posts use 4:5 (1080×1350px) — this is the maximum size Instagram allows and occupies the most feed space. Landscape posts use 1.91:1 (1080×566px). Stories and Reels use 9:16 (1080×1920px). Profile pictures display as circles from a square upload, ideally 320×320px or larger.
For professional print quality at 300 DPI: multiply the print size in inches by 300 to get the required pixel count. A 4×6 inch print needs 1200×1800px. An 8×10 inch print needs 2400×3000px. An A4 sheet (8.27×11.69 inches) needs 2481×3508px. Use the Print Size calculator above to see what print sizes your image supports at each DPI level.
The CSS aspect-ratio property sets the preferred aspect ratio of an element, maintaining it as the element's size changes. For example, aspect-ratio: 16/9 makes an element maintain a 16:9 shape as its width changes. This replaces the older padding-top hack (setting padding-top to a percentage equal to height÷width×100). All major browsers have supported aspect-ratio natively since 2021. The Pixels → Ratio calculator provides the correct CSS values for any dimensions.
🔗 Related tools

More free image tools