What is an aspect ratio?
Aspect ratio is the proportional relationship between an image's width and its height. It determines the shape of photos, videos, screens and print sizes: 16:9 for YouTube and TVs, 9:16 for Reels and Shorts, 4:3 for older screens and many tablets, 1:1 for square posts.
Designers, video editors, photographers and web developers need it whenever they resize, crop or embed media. This calculator simplifies any dimensions to their ratio, identifies the closest standard format, and calculates the matching width or height for a new size, along with a table of common widths.
How to use the Aspect Ratio Calculator
1.Enter the original size
Width and height in pixels, or any unit.
2.Enter one new side
A new width or a new height.
3.Read the other side
Plus the simplified ratio and the closest standard one.
Example: resizing a Full HD frame
Shrinking 1920 × 1080 to 1280 pixels wide:
- Aspect ratio
- 16:9
- Decimal
- 1.7778 : 1
- New size
- 1280 × 720
- Megapixels
- 2.07
new height = new width × height ÷ width
At 1,280 pixels wide, the frame must be 720 pixels tall to stay 16:9.
Keeping proportions
An aspect ratio is width divided by height, written as two whole numbers in lowest terms: 1920 × 1080 is 16:9, 1080 × 1350 is 4:5. Scaling both sides by the same factor keeps the ratio and avoids the squashed or stretched look of a distorted image.
Some sizes don't reduce to familiar numbers; 1366 × 768 simplifies to 683:384, which is close to 16:9. The calculator flags the nearest standard ratio and lists the height for common widths, which is handy for responsive images and video embeds.
Frequently asked questions
What aspect ratio is 1920 × 1080?
16:9, the standard widescreen ratio for HD and 4K video.
What ratio is an Instagram portrait post?
4:5, for example 1080 × 1350.
How do I calculate a new height?
New height = new width × original height ÷ original width.
How do I set an aspect ratio in CSS?
Use aspect-ratio: 16 / 9; on the element.
Related tools
Image Resizer
Change an image's width and height in pixels or by percentage.
PPI Calculator (Pixel Density)
Pixel density of a screen from its resolution and diagonal size.
Golden Ratio Calculator
Split a length in the golden ratio, or extend one, for layouts and design.
px to rem Converter
Convert pixels to rem and rem to pixels for any root font size.
Type scale generator
Font sizes from a ratio, with fluid clamp() and CSS variables.
Font pairing
Preview heading and body font combinations from Google Fonts.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table