
Screen Resolution Calculator
Use this screen resolution calculator and monitor PPI calculator to find total pixels, megapixels, and diagonal PPI from pixel width, height, and inches.
Open toolEnter 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.
Enter the inputs, then select Calculate aspect ratio.
Result will appear here
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.
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 Case | Original Width × Height | GCD (d) | Reduced Ratio | Sample Target width | Exact Target height | Rounded height |
|---|---|---|---|---|---|---|
| Full HD 1080p to HD 720p (Default) | 1920 × 1080 | 120 | Ratio: 16:9 | 1280 | 720 | 720 px |
| 4K UHD to QHD 1440p Video | 3840 × 2160 | 240 | Ratio: 16:9 | 2560 | 1440 | 1440 px |
| Vertical Reels / Shorts / TikTok | 1080 × 1920 | 120 | Ratio: 9:16 | 720 | 1280 | 1280 px |
| Classic Monitor / iPad Display | 2048 × 1536 | 512 | Ratio: 4:3 | 1024 | 768 | 768 px |
| Full-Frame DSLR Photo (24 MP) | 6000 × 4000 | 2000 | Ratio: 3:2 | 1500 | 1000 | 1000 px |
| Social Portrait Feed Post | 1080 × 1350 | 270 | Ratio: 4:5 | 800 | 1000 | 1000 px |
| Square Avatar / Carousel Tile | 1080 × 1080 | 1080 | Ratio: 1:1 | 600 | 600 | 600 px |
| Ultrawide WQHD Monitor ("21:9") | 3440 × 1440 | 80 | Ratio: 43:18 | 2580 | 1080 | 1080 px |
| Laptop WXGA Panel ("16:9") | 1366 × 768 | 2 | Ratio: 683:384 | 1000 | 562.225475842 | 562 px |
| Web Banner Resized to 1000 px | 1920 × 1080 | 120 | Ratio: 16:9 | 1000 | 562.5 | 563 px |
Follow these three steps to simplify a pixel ratio and compute the proportional target height.
Type your source whole-pixel Width (1920 preloaded) and Height (1080 preloaded), each between 1 and 10,000,000.
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.
Press Calculate aspect ratio to view the reduced ratio and scaled height, then click Copy or Download (result.txt).
Review three practical resizing scenarios covering standard 16:9 video downscaling, DSLR and vertical social media formats, and non-integer target heights.
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.

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.

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.

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.

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).


Use this screen resolution calculator and monitor PPI calculator to find total pixels, megapixels, and diagonal PPI from pixel width, height, and inches.
Open tool
Use this screen size calculator and monitor size calculator to calculate screen size from diagonal and aspect ratio (16:9, 21:9, 16:10, 2.39:1) in inches or cm.
Open tool
Solve proportions a / b = c / x for the missing ratio term in one click. Free browser-based ratio calculator with 12-digit precision, copy, and .txt export.
Open toolChoose another tool for your next calculation, conversion, or text task.

Find the greatest common factor of the supplied integers.
Open tool
Use this DPI calculator for printing to divide image pixel length by printed inches (PPI = pixels / inches). Includes a 10-row 300 DPI print size chart.
Open tool
Use this pixel to inch converter to convert pixels to inches at 300 PPI print, 150 PPI banner, or 96 PPI CSS resolution with a 10-row reference lookup table.
Open toolConvert CSS pixels to rem units using your root font size.
Open toolAnswers about using Aspect Ratio Calculator and understanding its results.
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.
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.
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.
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).
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).
Choose another tool for your next calculation, conversion, or text task.