What this calculator does
Find out who owes whom, and how much, after a trip or a month of shared bills. Usually one person paid for the cabin, another for groceries and someone else for nothing at all. This calculator takes what each person paid and works out everyone's fair share. Then it turns the differences into a short list of payments, so everyone ends up even.
Shares can be equal or weighted. If one person is paying for a partner or a child, give them a share of 2. If someone joined for only part of a trip, give them a smaller share. Amounts are worked in whole cents. The shares are rounded so they add up to the exact total, so the payments balance to the penny.
Where it's used
Why this math matters outside the classroom:
- Group trips. Four friends who spent $280 find each owes $70, so the one who paid $180 should get $110 back.
- Shared households. Housemates total a month of groceries and utilities, then settle with one or two transfers instead of many.
- Families on holiday. Two families of 3 and 2 split a $1,500 rental by shares 3:2, so their fair shares are $900 and $600.
- Signed numbers. Students treat money owed as negative and money due as positive, and check that the balances add to zero.
- Club budgets. A club treasurer settles what members spent on supplies for an event against an equal share per member.
Grade level and standards: Grades 6–7; Common Core State Standards for Mathematics 7.NS.A.3, 6.RP.A.3. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- List what each person paid, in order, separated by commas. Enter 0 for anyone who paid nothing.
- Leave the shares blank to split equally. Or enter one weight per person, in the same order.
- Read the list of payments that settles the group. Check each person's balance in the table.
What the inputs mean
- Amount each person paid ($)
- Add up everything each person paid for the group before you enter it. Person 1 is the first amount, Person 2 the second, and so on.
- Shares (optional)
- Weights, not dollar amounts. 2, 1, 1 means the first person's fair share is twice each of the others'. A 0 share means that person owes nothing toward the costs.
Formula and method
total = sum of everything paid fair share = total × (your share ÷ sum of shares), rounded to the cent so shares add up to the total balance = amount paid − fair share settle: the person who owes most pays the person owed most, repeat until all balances are zero
Your balance is what you paid minus your fair share. A positive balance means you paid more than your share and are owed money. A negative balance means you owe. The balances always add up to zero, because the fair shares add up to exactly what was spent.
To settle, the calculator pairs the person who owes the most with the person owed the most. It pays off the smaller of the two amounts, then repeats. Each payment clears at least one person. So a group of n people (n is the number of people) needs at most n − 1 payments.
Sometimes a total doesn't split evenly. Then the leftover cents go to the people whose exact shares were closest to the next cent. That way nobody is off by more than a cent.
Worked example
Four friends share a weekend. Person 1 paid $180 for the rental, Person 2 paid $60 for food, Person 3 paid nothing and Person 4 paid $40 for gas. They split equally.
- Total spent: $180 + $60 + $0 + $40 = $280.
- Fair share: $280 ÷ 4 = $70 each.
- Balances: Person 1 is owed $110; Person 2 owes $10; Person 3 owes $70; Person 4 owes $30.
- Settle: Person 3 pays Person 1 $70.00, then Person 4 pays Person 1 $30.00, then Person 2 pays Person 1 $10.00.
Result: Person 3 pays Person 1 $70.00; Person 4 pays Person 1 $30.00; Person 2 pays Person 1 $10.00. Three payments settle the $280.
Understanding the result
Each line of the result is one payment to make. Once they're all made, everyone has paid exactly their fair share.
The table shows where each person stands before settling: what they paid, what their share was, and the difference.
If the group keeps sharing costs, you don't have to settle every time. Carry the balances forward, and run the calculator again with the running totals.
Assumptions and limitations
- Every cost is shared by the whole group in the same proportions. For costs only some people share, run those separately and combine the balances.
- Amounts are in one currency and are worked in whole cents.
- The settling method (always pairing the biggest amounts first) is short and simple. But in some groups, a cleverer pairing can save one payment.
- People are numbered, not named. Keep a note of the order you entered them in.
- Shared costs that only some of the group used, and items one person should pay for alone, aren't split automatically.
Frequently asked questions
How do I split when someone came for only part of the trip?
Use shares. If a trip lasted four nights and one person came for two, give everyone else a share of 4 and that person a share of 2. Their fair share will be half of a full share.
Why are the shares sometimes a cent different?
Money can't be split below a cent. When $100 is split three ways, the shares are $33.34, $33.33 and $33.33, so they still add up to $100. The extra cent goes to the person whose exact share was closest to rounding up.
Is this the fewest possible payments?
A group of n people never needs more than n − 1 payments here, and the result is usually the fewest possible. Now and then, a few people's balances happen to cancel out among themselves. Then a different pairing can save a payment.
Can someone who paid more than everyone else still owe money?
Yes, with weighted shares. If one person's share covers three people, their fair share may be bigger than what they paid, even if they paid the most.
How this calculator is checked
Method: Proportional cost sharing with largest-remainder cent allocation; greedy debt settlement matching the largest debtor with the largest creditor. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Shared Expenses Calculator on your own website or blog for free. Paste this code where you want it to appear: