Ratio calculator

Simplify a ratio or divide a total into two proportional shares.

Use nonnegative finite decimals; at least one ratio term must be positive. Shares remain exact fractions, without monetary cent allocation.

YOUR ANSWER

Simplified ratio

2 : 3

How it’s calculatedCalculated on your device

Clear decimal denominators and divide both terms by their greatest common factor. Share = total × term ÷ sum of terms.

Displayed values may be rounded. Calculations keep the underlying precision.

Terms and total must be nonnegative. One term may be zero, but both cannot be zero. Finite decimal input uses up to 150 characters and exponent ±100. Exact fractional shares are not rounded to currency cents.

The formula, made simple

Simplify a two-term ratio using exact decimal inputs, or allocate a total according to the ratio.

Clear decimal denominators, then divide both terms by their greatest common factor. Share A = total × A / (A + B); share B uses B.

A worked example

12:18 simplifies to 2:3. Splitting 100 by that ratio gives exact shares 40 and 60.

A few useful answers

Can one share be zero?

Yes. A ratio 0:5 simplifies to 0:1 and assigns all of a nonnegative total to the second share.

Back to calculator ↑