CSS Aspect Ratio Calculator
Find the aspect ratio of a width and height, and the matching height for a new width.
Compare Your Options And Get Clear Answers
Find the aspect ratio of a width and height, and the matching height for a new width.
CSS Aspect Ratio Estimator
Enter your numbers below for an instant estimate.
How It Works
Key concepts behind this calculator
Enter Values
Fill in each field with your own numbers.
Calculate
Results update as you change the inputs.
Review
Read the breakdown and the explanation.
Adjust
Change values to compare scenarios.
CSS Quick Guide
Typical values for reference.
| Width | Height | Ratio | Decimal |
|---|---|---|---|
| 1920 | 1080 | 16:9 | 1.7778 |
| 1280 | 720 | 16:9 | 1.7778 |
| 1024 | 768 | 4:3 | 1.3333 |
| 800 | 800 | 1:1 | 1.0000 |
| Rule of Thumb | Check inputs | Use as a guide | Round sensibly |
CSS Aspect Ratio Calculator FAQ
Answers to common questions about this calculator.
Divide width and height by their greatest common divisor.
1.778, the HD video ratio.
aspect-ratio: 16 / 9;
New height equals new width times height divided by width.
