Math & statistics
Ratio calculator
Reduce an integer ratio to its smallest equivalent terms.
Reviewed December 1, 2026Your results
Enter your numbers and select Calculate.
The formula
a:b simplifies to (a ÷ gcd(a,b)):(b ÷ gcd(a,b)).
Worked example
12:8 simplifies to 3:2.
What to keep in mind
The second term must be nonzero. The output uses a positive second term.