AI Tools Free

Aspect Ratio Calculator

Enter Width, Height, and Target width into this aspect ratio calculator to reduce any pixel dimensions to their lowest Ratio (W:H) and calculate both the exact Target height and whole-pixel Rounded height in one click. All calculations run locally in your browser with Copy and result.txt download.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate aspect ratio.

Your result
Enter your details

Result will appear here

How this image aspect ratio calculator works

An image aspect ratio calculator solves two tasks at once: simplifying your original pixel dimensions (Width × Height) into a lowest-terms ratio like 16:9 or 4:3, and scaling the height proportionally to fit a new Target width. Enter whole-pixel integers from 1 to 10,000,000 to see how to calculate aspect ratio (1920 × 1080 reduces to 16:9 and scales to 720 px at Target width = 1280).

d = gcd(Width, Height); Ratio = (Width / d) : (Height / d); Target height = Target width × Height / Width; Rounded height = Math.round(Target height) px.

Divides whole-pixel Width and Height by their greatest common divisor (just like our GCF Calculator) and scales Target width proportionally (matching our Ratio Calculator), reporting both exact Target height (up to 12 significant digits) and nearest whole-pixel Rounded height.

Diagram showing 1920 × 1080 divided by GCD = 120 to yield Ratio: 16:9 and scaled to 1280 × 720
With Width = 1920, Height = 1080, and Target width = 1280, Ratio is 16:9 and Target height is 720 px.

16:9 Aspect Ratio Calculator and Standard Resolution Table

Compare 10 common video, monitor, photography, and social media resolutions showing their GCD divisor, reduced Ratio (W:H), and scaled output for a sample Target width.

Standard Format / Use CaseOriginal Width × HeightGCD (d)Reduced RatioSample Target widthExact Target heightRounded height
Full HD 1080p to HD 720p (Default)1920 × 1080120Ratio: 16:91280720720 px
4K UHD to QHD 1440p Video3840 × 2160240Ratio: 16:9256014401440 px
Vertical Reels / Shorts / TikTok1080 × 1920120Ratio: 9:1672012801280 px
Classic Monitor / iPad Display2048 × 1536512Ratio: 4:31024768768 px
Full-Frame DSLR Photo (24 MP)6000 × 40002000Ratio: 3:2150010001000 px
Social Portrait Feed Post1080 × 1350270Ratio: 4:580010001000 px
Square Avatar / Carousel Tile1080 × 10801080Ratio: 1:1600600600 px
Ultrawide WQHD Monitor ("21:9")3440 × 144080Ratio: 43:18258010801080 px
Laptop WXGA Panel ("16:9")1366 × 7682Ratio: 683:3841000562.225475842562 px
Web Banner Resized to 1000 px1920 × 1080120Ratio: 16:91000562.5563 px

How to calculate aspect ratio in 3 steps

Follow these three steps to simplify a pixel ratio and compute the proportional target height.

Enter original width and height

Type your source whole-pixel Width (1920 preloaded) and Height (1080 preloaded), each between 1 and 10,000,000.

Input and settings
Aspect Ratio Calculator input fields with Width 1920, Height 1080, and Target width 1280
Step 1: Enter whole-pixel Width, Height, and Target width (1 to 10,000,000).

Enter the target width

Supply the new whole-pixel Target width (1280 preloaded, range 1 to 10,000,000) that you want to scale the image or video to.

Tool result
Aspect Ratio Calculator result panel displaying Ratio: 16:9 and Target height: 720
Step 2: Select Calculate aspect ratio to view the reduced ratio and scaled target height.

Click Calculate aspect ratio and export

Press Calculate aspect ratio to view the reduced ratio and scaled height, then click Copy or Download (result.txt).

Review the details
Aspect Ratio Calculator detail output with Copy and Download result.txt buttons
Step 3: Copy the 3-line ratio and pixel summary or download result.txt.

Worked image aspect ratio calculator examples

Review three practical resizing scenarios covering standard 16:9 video downscaling, DSLR and vertical social media formats, and non-integer target heights.

Downscaling 1080p Full HD to 720p (1920 × 1080 to 1280)

With the preloaded defaults (Width = 1920, Height = 1080, Target width = 1280), clicking Calculate aspect ratio returns Ratio: 16:9, Target height: 720, and Rounded height: 720 px. Dividing 1920 and 1080 by their greatest common divisor (120) confirms the 16:9 widescreen frame, and 1280 × 9 / 16 = 720. To compute total pixel count, megapixels, and PPI from those dimensions, open our Screen Resolution Calculator.

Worked example showing 1920 × 1080 reduced to 16:9 and scaled to 1280 × 720 px
1920 × 1080 reduces to Ratio: 16:9 and scales to 720 px at Target width = 1280.

Resizing DSLR photos (3:2) and vertical Reels (9:16)

A full-frame camera photo measuring 6000 × 4000 (gcd = 2000) simplifies to Ratio: 3:2; setting Target width = 1500 for a blog article returns Target height: 1000 (1000 px). Conversely, a vertical smartphone clip measuring Width = 1080 and Height = 1920 outputs Ratio: 9:16 and scales cleanly to 1280 px high when Target width = 720. Photographers calculating sensor angular coverage can pair this with our Camera Field of View Calculator.

Comparison of landscape 3:2 (6000 × 4000 to 1500 × 1000) and vertical 9:16 (1080 × 1920 to 720 × 1280)
6000 × 4000 reduces to 3:2 (1500 × 1000), while vertical 1080 × 1920 reduces to 9:16 (720 × 1280).

Handling fractional target heights (1920 × 1080 at Target width = 1000)

When you scale a 1920 × 1080 (16:9) hero image to a 1000 px article column (Target width = 1000), 1000 is not divisible by 16. The calculator outputs both the exact floating-point value (Target height: 562.5) and the nearest whole-pixel dimension (Rounded height: 563 px), letting you use 562.5px in CSS layout or 563 px in raster image editors.

Worked example showing 1920 × 1080 at Target width = 1000 returning Target height: 562.5 and Rounded height: 563 px
At Target width = 1000, 1920 × 1080 yields Target height: 562.5 and Rounded height: 563 px.

Reading aspect ratio calculator pixels, non-standard ratios, and rounding

Keep these three rules in mind when interpreting the 3-line result block (Ratio, Target height, and Rounded height):

First, because the calculator divides Width and Height by their exact mathematical gcd(Width, Height), panels marketed as "21:9 Ultrawide" (3440 × 1440, gcd = 80) display their true irreducible ratio Ratio: 43:18 (2.3889:1 vs 21:9 = 2.3333:1), and 1366 × 768 laptop screens (gcd = 2) display Ratio: 683:384 rather than 16:9.

Second, raster image formats (JPEG, PNG, WebP) require whole-integer pixel dimensions, so use Rounded height (Math.round(Target width × Height / Width)) when exporting files. To convert pixel counts into physical display or print dimensions, chain your ratio into our Screen Size Calculator, DPI Calculator, or Pixel to Inch Converter.

Comparison of exact floating-point Target height and whole-pixel Rounded height
Target height displays up to 12 significant digits; Rounded height rounds to the nearest whole pixel.

Aspect ratio calculator input bounds (1 to 10,000,000) and whole-pixel rules

Verify these three input validation rules before running your calculation:

First, Width, Height, and Target width must be positive whole integers between 1 and 10,000,000. Entering a decimal such as 1920.5 triggers "Width must be a safe whole number." Entering 0, a negative number, or a value above 10,000,000 triggers "Enter a valid Width." (or the corresponding field label).

Second, the reduced ratio reflects pixel counts assuming square pixels (1:1 pixel aspect ratio), which is standard across modern displays, cameras, and responsive web layouts (see our PX to REM Converter for CSS unit conversion).

Summary of the 1 to 10,000,000 integer bounds and square-pixel display assumption
Requires whole-pixel integers from 1 to 10,000,000 for Width, Height, and Target width.

Frequently asked questions about the aspect ratio calculator

Answers about using Aspect Ratio Calculator and understanding its results.

How do you calculate the aspect ratio from pixel width and height?

Find the greatest common divisor (gcd) of the pixel Width and Height, then divide both numbers by that divisor: Ratio = (Width / gcd) : (Height / gcd). For a 1920 × 1080 screen, gcd(1920, 1080) = 120, so 1920 / 120 = 16 and 1080 / 120 = 9, giving 16:9.

How do you resize an image to a new width while keeping its aspect ratio?

Multiply the new Target width by the original Height and divide by the original Width: Target height = Target width × (Height / Width). For example, resizing a 6000 × 4000 (3:2) photo to Target width = 1500 gives 1500 × 4000 / 6000 = 1000 px height.

What are the standard pixel resolutions for a 16:9 widescreen aspect ratio?

Common 16:9 widescreen resolutions include 640 × 360 (nHD), 1280 × 720 (720p HD), 1600 × 900 (HD+), 1920 × 1080 (1080p Full HD), 2560 × 1440 (1440p QHD), 3840 × 2160 (4K UHD), and 7680 × 4320 (8K UHD). Every pair reduces to 16:9 because Width × 9 = Height × 16.

Why do 3440×1440 and 1366×768 reduce to 43:18 and 683:384 instead of 21:9 and 16:9?

Monitor manufacturers use "21:9" and "16:9" as approximate marketing categories, whereas this calculator computes the exact mathematical ratio using gcd(Width, Height). For 3440 × 1440, gcd(3440, 1440) = 80, which reduces to 43:18 (an exact 21:9 screen at 1440 height would be 3360 × 1440). For 1366 × 768, gcd(1366, 768) = 2, which reduces to 683:384 (1.7786:1 vs 16:9 = 1.7778:1).

Why does the calculator report both Target height and Rounded height in pixels?

When Target width × Height is not evenly divisible by Width, the proportional height contains a decimal fraction (for example, 1920 × 1080 scaled to Target width = 1000 gives Target height: 562.5). The calculator displays both Target height (up to 12 significant digits for CSS or vector layouts) and Rounded height (Math.round to the nearest whole pixel for raster image exports).

Calculate your aspect ratio and target height now

Choose another tool for your next calculation, conversion, or text task.

Calculate aspect ratio