Aspect Ratio Calculator
Calculate width, height, and ratios for video and responsive design.
How it works
- 1
Enter design values
Input your dimensions, color values, or CSS units into the tool.
- 2
See instant conversion
Review the converted design values and visual preview where available.
- 3
Apply in your project
Copy the final values into your stylesheet, design file, or component.
Common use cases
Find height
Width: 1920, Ratio: 16:9
Find ratio
Width: 1200, Height: 630
About This Tool
Calculate the missing dimension (width or height) from an aspect ratio, or find the aspect ratio from given dimensions. Includes common presets for video (16:9, 4:3, 21:9, 9:16), social media (1:1, 4:5), and photography (3:2).
For video work: 16:9 is the standard for YouTube, HD, and 4K. 9:16 is used for TikTok, Instagram Reels, and YouTube Shorts. 4:3 is legacy TV and some presentation formats. 21:9 is ultrawide cinema.
For web design: use the CSS aspect-ratio property to maintain proportions responsively. For example, aspect-ratio: 16 / 9 on a container will keep it widescreen at any width. This eliminates the old padding-top hack and is supported in all modern browsers since 2021.
For social media: Instagram feed posts use 1:1 (square) or 4:5 (portrait). Twitter/X cards use 2:1. LinkedIn posts use 1.91:1.
Understanding aspect ratios is fundamental to visual design. An aspect ratio expresses the proportional relationship between width and height as two numbers separated by a colon. The first number represents width and the second represents height, regardless of the actual pixel dimensions. For example, a 16:9 image could be 1920x1080, 1280x720, or 640x360 — all share the same proportions.
When resizing images or videos, maintaining the correct aspect ratio prevents distortion. Stretching an image to fill a different ratio causes it to look squashed or stretched. The three strategies for fitting content into a different aspect ratio are: letterboxing (adding black bars), cropping (removing content from edges), and scaling (maintaining ratio within the bounds).
Common use cases include calculating YouTube thumbnail dimensions (1280x720 for 16:9), determining the correct image size for social media posts, designing responsive containers that maintain proportions across screen sizes, and converting between different resolution tiers while maintaining the same ratio (e.g., 1080p to 720p to 480p).
The CSS aspect-ratio property simplifies responsive design significantly. Before its introduction, developers used the padding-top hack, where a percentage-based padding-top created the correct proportions because percentage padding is calculated relative to the element width. Now, a single CSS declaration handles this natively.
For photography, common aspect ratios include 3:2 (standard DSLR), 4:3 (micro four thirds and many phone cameras), and 1:1 (medium format and square crops). Understanding these ratios helps when cropping and printing photos to standard frame sizes like 4x6 (3:2), 5x7 (7:5), and 8x10 (5:4).
When working with responsive images, you can use the aspect-ratio property alongside object-fit to ensure images fill their containers without distortion. Set the container to the desired aspect ratio, then apply object-fit: cover to the image to fill the space while maintaining its natural proportions.
More examples
Examples
Find height
Input
Width: 1920, Ratio: 16:9
Output
Height: 1080
Find ratio
Input
Width: 1200, Height: 630
Output
Ratio: 40:21 (≈ 1.905:1)
Frequently Asked Questions
- What is an aspect ratio?
- An aspect ratio is the proportional relationship between width and height. 16:9 means for every 16 units of width, there are 9 units of height. It is written as W:H and is independent of actual pixel dimensions.
- What is the most common video aspect ratio?
- 16:9 (widescreen) is the standard for HD/4K video, YouTube, and most modern displays. 9:16 is used for vertical/mobile video (TikTok, Reels). The 16:9 ratio was standardized for HD television in the 1990s and is now the dominant format.
- How do I use aspect ratios in CSS?
- Use the CSS aspect-ratio property: aspect-ratio: 16 / 9; This is supported in all modern browsers. For older browsers, use the padding-top hack: padding-top: 56.25% (which is 9/16 × 100%) with position: relative on the parent and position: absolute on the child.
- What aspect ratio should I use for YouTube videos?
- 16:9 is the standard aspect ratio for YouTube. At 1080p, that is 1920×1080 pixels. At 4K, it is 3840×2160. YouTube also supports 4:3 and 1:1, but 16:9 fills the player without black bars on most screens.
- What aspect ratio is used for TikTok and Instagram Reels?
- 9:16 (vertical) is the standard for TikTok, Instagram Reels, and YouTube Shorts. At 1080p, that is 1080×1920 pixels. This is the inverse of the standard widescreen 16:9 ratio.
- How do I calculate the height from a width and aspect ratio?
- Divide the width by the first number of the ratio, then multiply by the second number. For example, with a width of 1920 and ratio 16:9: 1920 ÷ 16 × 9 = 1080. The calculator does this automatically.
- What is the difference between 16:9 and 16:10?
- 16:9 (1.78:1) is the standard widescreen ratio used in HD video and most monitors. 16:10 (1.6:1) is slightly taller and was common in older laptops and Apple displays. 16:10 provides more vertical space for productivity but is less common in consumer displays today.
- What aspect ratio should I use for Instagram posts?
- Instagram supports several ratios: 1:1 (square, 1080×1080) for classic posts, 4:5 (portrait, 1080×1350) for maximum feed presence, and 1.91:1 (landscape, 1080×566) for wide images. Portrait (4:5) takes up the most screen space in the feed.
Learn More
Related Guides
Discover More Tools
View all Design Tools →CSS Unit Converter
Convert between px, rem, em, vw, vh, %, and pt.
Image Compressor
Compress images in your browser — no uploads to any server.
Color Converter
Convert colors between HEX, RGB, HSL, and OKLCH formats.
Color Palette Generator
Generate harmonious color palettes from any base color with WCAG contrast checking.