Runs in your browser · No account required

Ratio Calculator

Reduce two quantities to their simplest ratio, or find the missing value in an equivalent proportion. Fraction and decimal inputs are calculated exactly.

Loading the calculator. Inputs will be ready shortly.

Enter A ≥ 0 and B > 0 as integers, fractions or decimals. Leave C blank to simplify only; enter C ≥ 0 to solve A:B = C:x (A must then be > 0).

Try an example

Selecting an example replaces the input. Press Calculate when you are ready.

How to use this calculator

Enter quantities in the same units. For a recipe with 2 cups of water and 4 cups of flour, enter 2 and 4. To scale water to 6 cups, enter 6 in C; x is the required flour. Click Calculate after selecting an example.

Calculation rules and limits

A:B is reduced by a greatest common divisor after decimal and fractional inputs are converted to rational numbers. To solve A:B = C:x, use x = BC/A. This tool supports nonnegative quantities with a positive B; A = 0 cannot determine a unique missing x. Units are not converted automatically.

Worked examples

For 2:4 = 6:x, reduce 2:4 to 1:2. Cross-multiply: 2x = 4 × 6 = 24, so x = 12. Check: 6:12 also reduces to 1:2. For (1/2):(3/4), multiply both quantities by 4 to obtain 2:3.

Formula references

OpenStax · Prealgebra: ratios and rates

Related calculators