HisabCalc

Ratio Calculator: Simplify a Ratio Like 12:18

Reduces the ratio of two positive numbers a and b to its simplest whole-number form by dividing both sides by their greatest common divisor, and echoes the original values so you can compare 12:18 with the simplified 2:3.

Enter your numbers

Example: 12

Example: 18

Result
Share on WhatsApp

Figures are computed on your device; nothing is sent anywhere.

Formula

gcd(a, b) = largest positive integer dividing both a and b exactly; ratioA = a; ratioB = b; simplifiedA = a / gcd(a, b); simplifiedB = b / gcd(a, b).

How the calculation works

The calculator finds the greatest common divisor of the two positive numbers you enter, which is the largest whole number that divides both of them exactly with no remainder.

It then divides each side of the ratio by that divisor, so 12 and 18, whose greatest common divisor is 6, are returned as 2 and 3 while keeping their original order.

The values you typed come back unchanged as ratioA and ratioB, and the reduced pair is returned as simplifiedA and simplifiedB, so the input and the answer sit side by side.

Common mistakes

When to use it

Worked example

With a = 12 and b = 18, the greatest common divisor is 6, so the ratio 12:18 simplifies to 2:3.

Original first number 12.00
Original second number 18.00
Simplified first term 2.00
Simplified second term 3.00

Common questions

What do ratioA and ratioB contain?

They echo the two positive numbers you entered, so with 12 and 18 the fields hold 12 and 18 exactly as typed.

How is the simplified ratio computed?

Both sides are divided by the greatest common divisor, so 12:18 becomes 2:3 because 6 divides both 12 and 18.

Last updated: 2026-10-03