Aspect Ratio Calculator
Aspect Ratio Inputs
Enter width and height to calculate the aspect ratio, scale resolutions while locking proportions, and estimate contain/cover crop offsets.
Calculation Results
Resolution
1920 Γ 1080
Aspect Ratio
16:9
Decimal Ratio
1.7778
Orientation
Landscape
Closest Preset
This is very close to a 16:9 Widescreen ratio.
Aspect Ratio
π‘ Rounding Mode / Landscape
Enter width and height to calculate the aspect ratio, scale resolutions while locking proportions, and estimate contain/cover crop offsets.
Usage Tips
Compare contain and cover fits when converting media layouts
When adapting graphics across different aspect ratios (e.g. converting 16:9 landscape to a 1:1 Instagram post), check both contain and cover results. This helps you preview exactly how much padding (contain) or cropping (cover) will be applied, ensuring no important details are lost.
What is Aspect Ratio Calculator?
The Aspect Ratio Calculator calculates standard simplified aspect ratios from width and height dimensions using the Greatest Common Divisor (GCD). It scales custom resolutions while keeping proportions locked, and estimates contain/cover fit boundaries, crop values, and platform-specific presets. It features rounding options (including Even Pixels) to help design and encode media correctly.
How to Use
- 1Select a calculation mode: Ratio, Find Missing Side, Resize, or Fit & Crop.
- 2Enter width, height, target ratio, or new size inputs based on the selected mode.
- 3Click standard or platform ratio presets to quickly fill in values.
- 4Choose a rounding method: Round, Floor, Ceil, or Even pixels.
- 5Review the simplified ratio, decimal ratio, contain/cover calculations, scaling metrics, and copy the formatted results.
Reference Knowledge
- βCalculates the Greatest Common Divisor (GCD) of width and height to yield the simplest integer aspect ratio (e.g., 1920x1080 -> 16:9).
- βOrientation is defined as Landscape if width > height, Portrait if width < height, and Square if they are equal.
- βComputes missing sides using: width = height Γ ratioWidth / ratioHeight, or height = width Γ ratioHeight / ratioWidth.
- βResize mode calculates scaling percentages by comparing the new area and edge factor with the original dimensions.
- βContain fit preserves the original image entirely within the target box, creating letterboxing or pillarboxing if ratios differ.
- βCover crop scales the image to completely fill the target area, cropping off-center elements.
- βThe 'Even pixels' rounding option adjusts values to the nearest even integer, which is essential for video codecs (like H.264) that require even dimensions to prevent encoding failures.
FAQ
Q.How is an aspect ratio calculated?
Width and height are divided by their Greatest Common Divisor (GCD). For example, 1920 and 1080 have a GCD of 120. Dividing both by 120 simplifies to 16 and 9, yielding a 16:9 aspect ratio.
Q.What is the difference between contain and cover fits?
Contain fits the entire image inside the box without clipping, which may leave margins (letterbox or pillarbox) if the aspect ratios differ. Cover fills the target area completely, which scales the image up and crops out parts that exceed the boundary.
Q.When should I use the 'Even pixels' rounding option?
Many video encoders and compression formats (such as H.264 or MP4) require even width and height values. If a dimension is odd, it can cause export errors or playback glitches. Use the Even pixels option to ensure encoding compatibility.
Q.What are standard and platform presets used for?
Standard presets populate common industry aspect ratios (16:9 widescreen, 4:3 classic, etc.). Platform presets provide reference ratios optimized for popular social networks, such as YouTube thumbnails (16:9) or Instagram feed posts (4:5).
Q.Should I convert decimal pixel results to integers when resizing?
Yes. Screen resolutions and graphic files represent coordinates in integer pixels (px). Selecting Round, Floor, or Ceil simplifies decimals to integers, preventing rendering artifacts or blurry edges.