Calculatrice.ma
Quote & Invoice

Shared expenses: who owes whom?

Add the group members and each expense with the person who paid it: the calculator gives everyone's balance and the repayments to make, with as few transfers as possible.

The group 0

New expense

DH
Paid by
Split between
Category (optional)

Total0,00 DH
Average per person0,00 DH
Expenses0

Who pays back whom?

Balances

By category

History

Your data stays on this device: nothing is sent online.

How to split a group's expenses

  1. Add the group members (at least two names).
  2. For each expense, enter the amount, tap the name of the person who paid, then tick those who share it.
  3. Pick a category if you like (food, transport, accommodation...).
  4. Read the "Who pays back whom?" result and send it to the group on WhatsApp in one click.

How the split is calculated

A person's share = expense amount ÷ number of participants
Balance = total paid − total of their shares
Positive balance: should receive · Negative balance: should pay

The calculator then settles the debts with the fewest transfers: the person who owes the most pays the one who is owed the most, and so on. A group of n people never needs more than n − 1 transfers. Amounts are calculated to the centime: 100 DH between 3 people gives 33.34 + 33.33 + 33.33 DH.

Example: a weekend in Essaouira

PersonPaidTheir shareBalance
Ahmed (riad)1,800 DH950 DH+850 DH
Sara (fuel)600 DH950 DH−350 DH
Youssef (dinner)450 DH950 DH−500 DH

Total: 2,850 DH, or 950 DH per person. Result: Youssef pays Ahmed 500 DH and Sara pays him 350 DH. Two transfers are enough.

When is it useful?

  • Trips and weekends with friends: accommodation, fuel, tolls, restaurants.
  • Flatshares: rent, water and electricity bills, shared groceries.
  • Events: birthdays, weddings, a group gift, a team outing.
  • Family: holidays, Eid expenses or a house move.

Need to work out a discount or an increase? Use the percentage calculator. Expenses in euros? Go through the euro to dirham converter.

Frequently asked questions

How do I split expenses between friends?
Add the group members, then each expense with the person who paid it and those who benefit from it. The calculator adds everything up and shows who should pay back whom.
How is each person's share calculated?
For each expense, a person's share is the amount divided by the number of participants. Each person's balance is what they paid minus the sum of their shares.
Can I leave someone out of an expense?
Yes. Under "Shared between", untick the person: the expense is then split only between the ticked participants.
Is my data sent over the internet?
No. The group and expenses stay in your browser. Only the summary you choose to share (WhatsApp, SMS) leaves your phone.

Related tools