Ratio calculator
Reduce a ratio to its simplest whole-number form, so 12:18 becomes 2:3. It helps with recipes, paint mixing, map scales and classroom ratio problems.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Divide every term of a ratio by their greatest common divisor to reduce it to simplest form. The reduced ratio describes the same proportion using the smallest whole numbers, and it can also be written as a fraction or a decimal.
FormulaSimplified ratio = a / GCD(a, b) : b / GCD(a, b)
Worked exampleThe ratio 1920:1080 has a greatest common divisor of 120, so it reduces to 16:9, which is 16/9 or about 1.777778 as a decimal.
Example
- First number
- 1920
- Second number
- 1080
- Common factor removed
- 120
- As a fraction
- 16/9
- As a decimal
- 1.777778 (rounded)
- Share of the total
- 64% and 36%
How to use the ratio calculator
- Enter the First number, such as 1920.
- Enter the Second number, such as 1080. Each can be a whole number, a decimal or a fraction like 1/2.
- The result updates as you type, or press Run. Use Copy result or Download to keep it.
How it works
Both sides are turned into exact fractions, scaled up to whole numbers, then divided by their greatest common divisor.
Decimals and fractions give whole-number results. For example, 1.5 and 2 simplify to 3:4, and 1/2 and 3/4 simplify to 2:3. The result also shows the common factor, the fraction, the decimal and each side's share of the total.
Negative numbers are allowed. The sign is moved so the second number is never negative.
At least one side must be nonzero. A side with a zero denominator, such as 1/0, is rejected.
Each number can have up to 80 digits, and e notation like 2.5e3 is accepted.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do you simplify a ratio?
Divide both numbers by their greatest common divisor. For 12:18 the greatest common divisor is 6, so the ratio becomes 2:3.
How do I simplify a ratio with decimals?
Multiply both sides by the same power of ten to clear the decimals, then simplify. The tool does this for you, so 0.75:2 becomes 3:8.
Can I simplify a ratio with three parts?
Not with this tool. It takes exactly two numbers.
Is my input kept private?
Yes. The ratio is simplified locally in your browser and is not uploaded.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools