Ratio calculator

Allocate the total proportionally to the first part of the ratio.

Inputs

Your result20 first part

Simplify an integer ratio

Formula and calculation method

Divide the first part by the sum of both parts, then multiply by the new total to find the first share.

Worked example

InputExample 1Example 2
First part22
Second part33
New total5045
Result20 first part18 first part

How to use the result

The output is the allocation to the first part only. Subtract it from the total to obtain the second part. The sum of the ratio parts must be nonzero.

How do ratio parts differ from percentages?

A 2:3 ratio contains five equal shares, so splitting a total of 100 gives 40 and 60. The ratio can stay 2:3 even when the total changes. For ratio simplification, divide both whole-number parts by their common factor.

Percentage of total calculatorPercentage change calculatorDiscount calculatorMarkup calculatorProfit margin calculator