Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Math & Science
  3. Aspect Ratio Calculator
Add to favorites

Aspect Ratio Calculator

Calculate aspect ratios, resize dimensions while maintaining proportions. Common presets for video, photo, mobile screens, and social media

Lock an aspect ratio and calculate the missing dimension. Enter a width and ratio (like 16:9) to find the height, or enter both dimensions to determine the ratio. Useful for resizing images, videos, and design layouts without distortion.

Calculated locally in your browserMore math & scienceJump to full guide

Related reading

  • Aspect Ratios Explained: From 16:9 to 1:1 and Beyond14 min read

Initializing in your browser…

You might also like

Scientific Calculator

Advanced calculator with scientific functions and history

Time Calculator

Add, subtract, and calculate time differences

Fraction Calculator

Add, subtract, multiply, divide, and simplify fractions

A worked calculation

A 1920×1080 hero image must be resized to 1280 wide without distorting it, what height keeps the ratio?

Input

1920 × 1080  →  new width 1280
Aspect Ratio Calculator produces

Result

Aspect ratio 16:9 · new size 1280 × 720

The ratio simplifies to 16:9, so locking width to 1280 forces height to 720 to avoid stretching. The tool solves for the missing dimension and names the simplified ratio, which is handy for picking standard video and screen sizes.

What this calculator does

Lock an aspect ratio and calculate the missing dimension. Enter a width and ratio (like 16:9) to find the height, or enter both dimensions to determine the ratio. Useful for resizing images, videos, and design layouts without distortion.

How it works

Enter a width and height (defaulting to 1920x1080) and the calculator reduces them to their simplest ratio using the Euclidean GCD algorithm. Rather than running GCD on the raw integers, it first multiplies each value by 1000 and rounds (Math.round(value * 1000)), so non-integer ratios reduce correctly too: 2.35:1 Cinemascope or a decimal width stays exact instead of collapsing to a meaningless integer pair. Alongside the simplified ratio (e.g. 16:9), it shows the decimal ratio computed as width÷height to four decimal places (1920÷1080 = 1.7778), the total pixel count formatted with thousands separators, and the megapixel figure as width·height÷1,000,000 rounded to two decimals (2.07 MP for 1080p). The simplified ratio and decimal value each have their own copy button, and a visual preview box scales the entered dimensions to fit a 300px bounding square so you can eyeball the shape.

The 'Resize Keeping Ratio' section does proportional scaling locked to whichever field you type in. Entering a new width locks width mode and computes height as Math.round(newWidth ÷ ratio); entering a new height locks height mode and computes width as Math.round(newHeight × ratio). Because both results are rounded to whole pixels, extreme scale factors can drift by a pixel from the exact ratio. The result (for example 1280 × 720 from a 16:9 source) copies as a plain '1280x720' string ready to paste into an export dialog.

Fourteen named presets are grouped into Video (16:9 HD/4K, 21:9 Ultrawide, 4:3 Standard, 2.35:1 Cinemascope, 1.85:1 Widescreen), Photo (3:2 35mm Film, 4:5 Instagram Portrait, 1:1 Square, 5:4 Large Format), Mobile (9:16 Stories/Reels, 9:19.5 iPhone, 9:20 Modern Android), and Social (1.91:1 Facebook/Twitter, 2:3 Pinterest). Clicking a preset doesn't just display the ratio; it fills the inputs with a concrete 1920px width and the matching computed height (round(1920 ÷ ratio)), giving you real working dimensions. Note that this tool is ratio-math only: it never loads or processes an actual image or video file, which distinguishes it from the image and video resizers. All inputs are stored in the URL via useUrlStates, so the Share button produces a link that reopens the calculator with your exact width, height, and resize values.

How to use

  1. 1Enter the known dimension (width or height) and the desired aspect ratio
  2. 2The missing dimension is calculated automatically

Key features

  • Calculate width or height from a given ratio
  • Determine the ratio from two dimensions
  • Common presets: 16:9, 4:3, 1:1, 21:9

When this is useful

  • Image resizing

    Find the right height when scaling a photo to a new width while preserving proportions.

  • Video production

    Calculate frame dimensions for standard and ultrawide aspect ratios.

Frequently asked questions

What aspect ratio is 1920×1080?

That is 16:9, the standard widescreen ratio used by most monitors and TVs.

Can I enter custom ratios?

Yes. Type any two numbers separated by a colon, such as 3:2 or 2.35:1.

Related tools and how they differ

  • Image Resizer: Resamples the pixels of an uploaded image to exact sizes or percentages, with fit/fill/crop modes and PNG/JPEG/WebP/AVIF output; use it to actually resize a file.
  • Graphing Calculator: Plots 2D math functions y=f(x) with roots, min/max, and intersections; use it to graph equations, not to size images or video.
  • 3D Graphing Calculator: Renders 3D surfaces z=f(x,y) as a rotatable WebGL mesh; use it to visualize two-variable functions, not pixel dimensions.

Further reading

  • Aspect Ratios Explained: From 16:9 to 1:1 and Beyond14 min read

Private by design

Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.