Buying an investment property can be a smart financial move. As you pay down the debt, you build equity in a property that—at least ideally—appreciates over time.

Then there are the tax benefits. You get to deduct your rental expenses from any income you earn, including items such as mortgage interest, property taxes, insurance, repair and maintenance costs, and property management, all of which saves you money at tax time. Ideally, the investment property also provides a steady source of income while you collect rent each month.

Because owning investment property entails significant time, effort, and money, going in with a friend can make sense. This move does come with some challenges, however. Here are five common problems of buying an investment property with a friend.

To avoid future problems, consider hiring an attorney to write a comprehensive agreement that details who is responsible for what, what happens if one of you wants to move on, and how the property will be handled if one of you passes away.

1. A Mortgage Rate Tied to Both Credit Reports

Since you and your friend will both be on the mortgage, both of your credit reports will be used by the lender. One person’s bad credit can negatively affect the mortgage terms, including the interest rate that you pay on the loan. Even a small change in interest rate – say 4.5% versus 4.0% – can make a big difference in the amount due every month on your mortgage and in the total interest you'll pay over the life of the loan.

2. No “Easy Button” for Moving Out

When you rent an apartment or house with a roommate, it’s fairly easy to walk away if the two of you no longer get along, or if you just decide to move. Not so with a mortgage.

Since both of your names are on the mortgage, you are both responsible for making the payments, even if one of you wants out of the deal. To get one of the names off the mortgage, you either have to sell the house or refinance the loan under just one name. Both options can be challenging: Selling can take many months, and there’s no guarantee the lender will approve your application to refinance. It’s a good idea to have a written agreement in place that details your agreed-upon exit plan should one of you decide to move on.

The agreement should also cover what happens if either of you dies. Does the survivor become the sole owner, or does he or she need to buy out the heirs of the deceased partner? What percentage of the property does each partner own? Will the property be sold, and if so, how will the proceeds be divided? For financial protection, each partner should purchase life insurance on the other to pay off the mortgage in case of death.

3. Credit Rating Risks

Since both you and your friend are listed on the mortgage, you are both responsible for making payments – on time and in full each month. If the two of you fall behind for whatever reason, the lender will report both of you to the credit agencies for non-payment or foreclosure (if it comes to that), even if you have diligently paid your share of the mortgage payment every month. Because both names are on the mortgage, your friend’s non-payment could end up costing you big on your credit report.

4. Challenges Getting Other Loans

Even if you and your friend split the mortgage payment each month 50-50, each of you alone is responsible for the entire mortgage payment each month in the eyes of other lenders. This can make each partner's debt-to-income ratio appear high and make it difficult to qualify for other loans. While married couples deal with this by applying jointly for loans, chances are you won’t want your friend on your car loan – and he or she won’t want to be there either.

5. Disagreement Over Responsibilities

A friendship can be quickly tested if there are any disagreements over who is responsible for what – be it paying for utilities or maintaining the property. To avoid this, include in your written agreement details regarding the breakdown of expenses, how repairs and maintenance will be handled (who will do the work, and how the costs will be shared), plus how deductions will be claimed (e.g., who gets to claim the mortgage interest deduction or whether you split it in some way).

The Bottom Line

Buying a house with a friend has lots of benefits: It may be easier to qualify for a mortgage; you get to share all the monthly expenses, including utilities, maintenance/repair costs and the mortgage payment. And, unlike renting, you get to build equity as you pay down the loan. Such a purchase also has challenges, however, and it’s important not to rush the decision.

Do your homework ahead of time, and make sure you and your friend both have the income to meet the monthly expenses of the investment.