Ratio simplifier
Reduce two non-negative whole numbers using their greatest common divisor.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
A ratio like 1280 : 720 is easier to understand as 16 : 9. This tool divides both numbers by their greatest common divisor to give the simplest form, the way screen sizes, recipe proportions, gear ratios and mixing instructions are usually written.
It works with whole numbers. For scaling a ratio to a new size, such as finding the height that keeps 16 : 9 at a width of 1,000 pixels, multiply instead.
How to use it
- Enter the first whole number of the ratio.
- Enter the second whole number.
- Run the tool to get the simplified ratio.
- Use the simplified ratio to scale: multiply both parts by the same number.
How the calculation works
Both values are divided by their greatest common divisor (found with Euclid’s algorithm). 1280 and 720 share a greatest common divisor of 80, so the ratio becomes 16 : 9.
a : b → (a ÷ gcd) : (b ÷ gcd)Worked example
A video is 1280 × 720 pixels. Entering 1280 and 720 returns 16 : 9, the standard widescreen aspect ratio. A 1080 × 1350 Instagram portrait image simplifies to 4 : 5.
Sample input and result
1920 : 1080 = 16 : 9.
Limitations
- Two non-negative whole numbers up to one billion.
- No decimal or negative values.
- Returns the simplified form only, not decimals or percentages.
Last updated:
Frequently asked questions
Can I use decimals?
No. Multiply both values by 10 or 100 first to remove decimals; 1.5 : 2.5 becomes 15 : 25 and simplifies to 3 : 5.
Why can’t both numbers be zero?
A ratio of 0 : 0 has no simplest form, because every number divides zero.
Does it handle three-part ratios?
No, two numbers only. Simplify a three-part ratio by dividing all parts by their shared divisor.
Troubleshooting
It returns the same numbers.
They have no common divisor above 1, so the ratio is already in its simplest form (for example 7 : 3).
I get an error.
Check for decimals, negatives, or both values being zero.
I need pixel dimensions from a ratio.
Divide the width by the first number and multiply by the second. For 16 : 9 at 1,000 px wide, height = 1000 ÷ 16 × 9 = 562.5 px.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Percentage calculator
Find a percentage of a number for discounts, allocations and proportional amounts.
Money & numbersPercentage change calculator
Measure change relative to the absolute original value. A zero starting value is undefined.
Money & numbersDiscount calculator
Calculate the saving and final price after one percentage discount.
Money & numbers