Calculate decimal to ratio conversions, ratio to decimal, and simplified a:b ratios with fractions and percents in one place instantly.

Decimal to Ratio Calculator

Convert between decimals, ratios, fractions, and percents.

Decimal → Ratio
Ratio → Decimal
Simplify a : b
:
to
Result
Copy result
▸ Show work

Decimal to Ratio Formula

To convert a decimal to a ratio, write the decimal as a fraction over a power of ten, then divide both sides by the greatest common divisor.

a : b = (x * 10^n) / GCD : 10^n / GCD
  • x = the decimal value
  • n = number of digits after the decimal point
  • GCD = greatest common divisor of the numerator and denominator
  • a : b = the simplified ratio

For the reverse direction, divide the two sides of the ratio: x = a / b. The “closest simple ratio” output finds the integer pair with the smallest denominator that approximates the decimal within a set tolerance, which is useful when the exact ratio has large numbers (for example, 1.7778 gives 8889 : 5000 exactly, but 16 : 9 is what you actually want).

Common Decimal and Ratio Values

Aspect ratios and fractions you are likely to see in real use:

DecimalRatioCommon Use
1.777816 : 9HDTV, YouTube, monitors
1.33334 : 3Older TVs, iPad
1.50003 : 235mm photo, DSLR
2.333321 : 9Ultrawide cinema
1.600016 : 10Some laptop screens
1.6180≈ 21 : 13Golden ratio
1.00001 : 1Square (Instagram)

Simple fraction equivalents:

DecimalFractionRatio
0.251/41 : 4
0.333…1/31 : 3
0.51/21 : 2
0.6255/85 : 8
0.753/43 : 4
0.8757/87 : 8

Worked Example

Convert 0.45 to a ratio.

  1. Two digits after the decimal, so multiply numerator and denominator by 100: 45 / 100.
  2. Find the GCD of 45 and 100. GCD = 5.
  3. Divide both sides: 45 ÷ 5 = 9, and 100 ÷ 5 = 20.
  4. Result: 9 : 20.

FAQ

What about repeating decimals like 0.333…? Type as many digits as you have. The calculator treats your input as a terminating decimal, so 0.3333 returns 3333 : 10000. Use the “closest simple ratio” row to find 1 : 3.

Why do I get a huge ratio for something like 1.7778? The exact conversion of 1.7778 is 8889 : 5000. The headline result rounds to the nearest clean ratio (16 : 9 in this case) using the closest simple ratio logic.

Can I enter negative decimals? Yes. The sign is preserved on the numerator of the resulting ratio.