Unitshare

A fixed total. Every unit accounted for.

Split the stock.
Keep the whole number.

Give each destination a weight. Unitshare divides your indivisible items using largest remainders, keeps the total exact, and shows which rows receive the rounding units.

Free · No account · Browser-local

Set the allocation

Total: 0–1000000000. Weights: 0–1000000000, up to 6 decimal places. Use 0.5 rather than .5. No signs, commas or exponents. At least one weight must be positive.

Your integer allocation

Every rounding unit explained

Equal remainders favour earlier input rows. Changing the total can reduce a row's allocation. There are no capacity limits or minimum guarantees in this model.

Weights are relative

5:3:2 works the same as 50:30:20. A weight can represent demand, shelf capacity or a chosen priority share. You decide whether it is appropriate for your items.

Fractions explain the result

For 23 boxes at weights 5:3:2, quotas are 11½, 6.9 and 4.6. Floors use 21 boxes; the last two go to the .9 and .6 rows. Final: 11, 7 and 5.

Understand the trade-off

Conserving a whole-number total requires a rounding rule. This one is deterministic and inspectable, with input-order ties and a total-change limitation. Read the examples before using it.

A useful plan for indivisible stock

Use the tool when items must stay whole and you want to split one pool by relative weights. Enter a label for each destination, check every weight, then inspect the exact quota and remainder beside the final integer. Adding a row gives it a default weight of 1; remove it if it is not part of your allocation.

This is one allocation method, not a promise of fairness for every purpose. It does not enforce a destination's maximum, guarantee one item per row, choose random winners or solve a packing problem. The guide shows what happens with zero weights, tied remainders and a larger total.