Whether it’s from a three-week adventure across Europe or just happy hour drinks around the corner, you’re probably familiar with the headache that is trying to split bills among groups of people. Apps like Venmo and PayPal make the actual money transfer pretty easy, but the onus is still on you to figure out who owes what—and, if you’re the generous friend who always tosses down your credit card, you know that your expectation of getting paid back isn’t always fulfilled.

Splitwise is a free app that helps you organize all of your shared expenses. First, you create a group of people, which you can categorize as “Apartment,” “House,” “Trip,” or “Other.” From there, all you have to do is enter your charges and specify how you’d like them to be split, and the app does the rest.

According to Lifehacker, you can divide bills equally, by percentage, or by amount, and you can even divide a bill equally and then adjust it so someone is paying a little more. In a nutshell, no bill-splitting scenario is too complicated for Splitwise. What if two people split your dinner check between their credit cards, but five people were at dinner? Include all five people in your group, indicate which two paid, and Splitwise will tell you how much the other three owe each of them.

Not only will the app keep you from getting confused or shortchanged, it’ll also keep track of your cumulative expenses so that you and your buddies don’t have to swap sums back and forth every time you have a drink on vacation. If your roommate covers the brunch bill on Saturday morning, for example, but you pay for concert tickets on Saturday night, Splitwise will just subtract your brunch IOU from the ticket expense, and your roommate pays the difference.

You can also upload images of receipts, set up recurring charges, and pay users through the app via Venmo or PayPal.

In addition to saving time and effort, Splitwise gets rid of the awkward gray area when it comes to deciding if things are even. Buying your friend a cup of coffee or a movie ticket isn’t usually a big deal, but those instances can leave you constantly feeling like people owe you money, or worse—wondering if other people feel like you owe them money. With Splitwise, you’ll actually know.

Download: iOS, Android

[h/t Lifehacker]