Ratio Calculator

Use this calculator

Compare two non-negative quantities, reduce whole-number ratios, scale a proportion or convert its two parts to percentage shares.

What is a ratio?

A ratio compares quantities in a specified order. In A : B, the first quantity A and second quantity B represent comparable parts; 2 : 3 means two of the first for every three of the second. A ratio is not automatically a fraction of the total. A proportion states that two ratios are equal.

a:b=\frac ab

Choose the calculation you need

Select Simplify, Scale or Parts %. Enter First value and Second value in their separate input fields. Scale alone reveals Target first value. Use non-negative numeric inputs; the app does not attach or convert units.

Both segments together represent the combined five parts.

Select Simplify, Scale or Parts %. Enter First value and Second value in their separate input fields. Scale alone reveals Target first value. Use non-negative numeric inputs; the app does not attach or convert units.

Simplify — reduce or normalize

Whole-number input 12 : 18 is divided by the greatest common divisor 6, giving 2:3. Integer entry 0:5 remains 0:1. For decimal input 1.5 : 3, the current app divides by the first value and displays 1 : 2; decimal simplification does not preserve integer terms such as 3:6. Enter 0:0 and the app rejects it; a decimal ratio with first value zero cannot be normalized.

Scale — keep the same relationship

Enter First value = 2, Second value = 3 and Target first value = 10. The second value is 10 × 3 ÷ 2 = 15; the result is 10 : 15. The first value must be greater than zero, and the target must be non-negative. Scaling a ratio does not invent measurement units.

Second scaled value = target first × second ÷ first.

Enter First value = 2, Second value = 3 and Target first value = 10. The second value is 10 × 3 ÷ 2 = 15; the result is 10 : 15. The first value must be greater than zero, and the target must be non-negative. Scaling a ratio does not invent measurement units.

Parts % — each share of the combined total

For 2 : 3 the total is 5; the first share is 2 ÷ 5 × 100 = 40%, and the second is 3 ÷ 5 × 100 = 60%. This is different from saying that the first quantity is 66.67% of the second. Both parts cannot be zero because their combined total would be zero.

Two shares of one total: 40% and 60%, respectively.

For 2 : 3 the total is 5; the first share is 2 ÷ 5 × 100 = 40%, and the second is 3 ÷ 5 × 100 = 60%. This is different from saying that the first quantity is 66.67% of the second. Both parts cannot be zero because their combined total would be zero.

Formulas and notation

Simplify: a:b = (a ÷ g):(b ÷ g).

a is First value, b is Second value and g is their greatest common divisor when both entries are integers.

Scale: b′ = t × b ÷ a.

a is the original First value (greater than zero), b is Second value, t is Target first value and b′ is the scaled second value.

Parts %: p₁ = 100a ÷ (a+b); p₂ = 100b ÷ (a+b).

a+b is the combined total (greater than zero); p₁ and p₂ are the two percentage shares.

Interpret the result correctly

Ordering matters: 2:3 and 3:2 describe opposite assignments. When comparing measurements, convert them to consistent units before entering. Whole-number simplification is exact within supported integer parsing; decimal ratios and displayed percentages use floating-point calculation and formatting.

Quick answers

Why is 2:3 not 2/3 of the total?

Because the combined total is five parts. The first contributes 2/5 of the total, or 40%.

Can I enter negative ratios?

No. This calculator rejects negative quantities even though signed ratios appear in wider mathematics.

What if I enter 0:0?

The ratio is undefined, so the calculator rejects it.