Skip to main content

Grades 5-9Free, no account needed

Exact ratio sharing calculator

Split a nonnegative total into two through six positive-weight shares, with exact allocation fractions and conservation checks.

All calculators

Try your problem

Continuous quantity from 0 to1000000; no integer-only allocation or money rounding.
2-6 positive comma-separated numbers. Paste: share(84;2,3,7). Press Ctrl+Enter to calculate.

Your calculations stay in this browser. No input history is saved.

Supported inputs and limits

Total T is nonnegative and at most1000000. Supply 2-6 strictly positive comma-separated weights, each at most1000000; weights field at most520 characters. Scalars: signed integers, finite decimals up to6 places or integer fractions with positive denominator, at most12 integer/numerator digits and12 denominator digits, at most24 characters overall, reduced denominator<=1000000. Continuous divisible quantities only; no currency rounding or indivisible-object allocation. Every share is an exact rational. Bar lengths represent weight proportions, even for T=0; pixel positions and percentages are approximate, and subpixel segments are disclosed, not enlarged. Paste share(84;2,3,7), at most200 characters.

Understand the method

A total of 84 is divided in ratio 2:3:7. Twelve ratio units are worth 7 each, so a proportional bar has shares 14, 21 and 49, summing to 84.

A ratio gives relative weights, not the final amounts. Add all positive weights to obtain W. If the available total is T, one ratio unit is worth T/W. Part i then receives weight i times that unit amount, equivalently T*w_i/W. Fractional weights are valid because only their relative sizes matter.

Verify that all shares add back to the total and, when the total is positive, their pairwise ratios equal the weight ratios. Scaling every weight by the same positive factor does not change the allocation. With a zero total every share is zero; weight proportions remain meaningful, but dividing one zero share by another is undefined.

Worked examples

Read the reasoning, or load an example into the calculator.

Three unequal shares

Weights 2+3+7 total12. Each unit is84/12=7, so the exact shares are14,21,49 and they sum to84.

Fractional weights

For total5 and weights1/2,3/2, the weight sum is2 and one ratio unit is5/2. Shares are5/4 and15/4, with ratio1:3.

A zero total

Sharing0 with weights1,2 gives shares0,0. The allocation proportions are1/3 and2/3, but the numeric share ratio0/0 is not defined.

Try it without the calculator

Three questions for practice, not a graded school assessment. Your answers stay on this page and are not saved.

1. Share60 in ratio2:3. What are the shares?
2. What happens if every weight is doubled?
3. With total0 and positive weights, what can be said?

Original Testinar learning content. This local preview is awaiting final review before publication.

Page UP