Recent findings suggest that buying a house with a friend can work, but the lender holds each of you responsible for the whole mortgage. So before closing, put a co-ownership agreement in writing that sets each owner’s share, how you split the payments and upkeep, and how one of you can buy the other out.

According to recent reports, pooling down payments and incomes with a friend, sibling, or partner can turn two rents into one mortgage on a home neither of you could afford alone. The hard part comes later, when one of you wants out or can’t pay. (Related: Hugging Face and Graphcore partner for IPU-optimized Tr...)

On a joint mortgage, each of you owes the whole payment, even if you agree to split it 50/50, the Consumer Financial Protection Bureau warns. If your friend comes up short, you cover the gap, or a partial payment can hurt both credit records. The lender also weighs both incomes against both sets of debts in one debt-to-income ratio, so your friend’s car loan cuts what you can borrow.

The deed can name you tenants in common, whose shares may be unequal and pass to each owner’s heirs, so your friend’s family could inherit a stake. Joint tenants own equal shares, and the survivor gets the whole home. Unless the deed spells out survivorship, you’re usually tenants in common, though state rules vary. Either way, without an agreed exit, the fallback is a partition, a lawsuit any co-owner can file, in which a court usually orders a single home sold.

So before closing, have a real estate attorney draft a co-ownership agreement that settles:.

Say two friends each put $30,000 down on a $400,000 condo and agree that either can buy the other out at an appraised value within 90 days. When one takes a job across the country, the clause spares them a fight.

Make every buyout include a refinance into the buyer’s name, or a sale if the buyer can’t qualify alone, since signing over a share leaves the departing friend on the mortgage.

The 101 money moves that matter most, from the foundations to protecting what you’ve built.

According to recent reports, advertiser Disclosure: Many or all of the offers that appear on this site are from companies that compensate us, and some companies pay for sponsored content. That compensation may influence which products we cover and where and how they appear on a page, including the order in which they appear. We do not include every tech giant or offer available in the marketplace.

→ Read original article