Ratio Calculator

Simplify ratios to their lowest terms instantly.

Runs locally in your browser

Your inputs are processed locally in your browser and are not uploaded or stored by us.

:

Simplify a two-part mathematical ratio (A : B) to its lowest terms instantly using exact integer arithmetic.

How to simplify a ratio

  1. Enter the first integer value in the left field (A).
  2. Enter the second integer value in the right field (B).
  3. The calculator will compute the greatest common divisor (GCD) and simplify the ratio.

Ratio Simplification Method

Simplified A = A ÷ GCD(A, B) Simplified B = B ÷ GCD(A, B)

The calculator finds the greatest common divisor (GCD) between the two values and divides both sides by it. This exact integer calculation ensures the ratio remains mathematically perfect without relying on decimal approximations.

Simplifying 8 : 12

First value8
Second value12
1. Find GCD(8, 12) = 4 2. Divide 8 ÷ 4 = 2 3. Divide 12 ÷ 4 = 3
Result: 2 : 3

Notes

  • Inputs must be non-negative integers that fall within JavaScript’s safe-integer range.
  • A ratio of 0 : 0 cannot be meaningfully simplified and is considered invalid.
  • Ratios involving a single zero (e.g., 0 : 5 or 5 : 0) are perfectly valid and will resolve to 0 : 1 or 1 : 0 respectively.
  • Your inputs are processed locally in your browser and are not uploaded or stored by us.