When you buy a used car through Facebook Marketplace, you’re usually hoping to snag a good deal on a replacement ride. But what happens when that “deal” turns into a money pit?

Let’s consider the case of a 35-year-old woman who, needing a budget-friendly vehicle to get to a new job, buys a used sedan from a Facebook Marketplace seller. It looks solid, seems to drive fine and the price is right. But within months, she’s spent thousands on repairs — and now the transmission has completely failed. With no emergency savings and already deep in debt, she’s stuck. Should she pay even more to fix the car, or cut her losses and move on?

Here’s how to weigh your options in a situation like this and what you can do to avoid falling into the same trap.

Don’t miss

Weighing your repair options

A failed transmission isn’t just another repair — it’s one of the most expensive issues your car can have. Replacing it could cost anywhere from $2,500 to over $5,000, according to J.D. Power. That’s a large bill for most people, especially for someone already in debt.

If the cost is still out of reach, it’s time to decide whether the car is worth saving.

Should you repair or walk away?

This decision depends on a few key factors:

The car’s value

If you’ve already spent thousands and the repair will cost thousands more, compare that total to what the car is actually worth. If the numbers don’t add up, continuing to invest might not be worth it.

Your lifestyle and transportation needs

Can you function without a car—at least temporarily? Public transit, biking, carpooling or rideshare services may be viable options while you regroup financially. But if you live in an area where a car is essential, you may have fewer choices.

Your financial situation

If repairing the car would prevent you from paying for essentials like rent, food or insurance, it’s probably time to move on. Even selling the car for scrap or parts might be a better outcome than digging deeper into high-interest debt.

Ultimately, you want to avoid throwing good money after bad. A car that continues to drain your finances can impact your ability to build savings, pay off debt or even maintain your credit score.

Read more: Want an extra $1,300,000 when you retire? Dave Ramsey says this 7-step plan ‘works every single time’ to kill debt, get rich in America — and that ‘anyone’ can do it

Tips for avoiding costly used car pitfalls

Facebook Marketplace doesn’t offer buyer protections like a dealership might, which makes it even more important to do your homework before purchasing a used car. Here are some smart steps to take before you buy:

According to Capital One, more than 250 million people use Facebook Marketplace to sell items — but it’s still the digital Wild West when it comes to cars. Take precautions to avoid being stuck with someone else’s problem.

Buying a used car off Facebook Marketplace can be a smart way to save. But when a deal turns into a debt trap, you need to act fast. Shop around, get honest repair quotes and take a hard look at whether fixing the car is financially feasible. And if you decide to buy again, be thorough. A little caution upfront can save you a lot of cash down the road.’

What to read next

Like what you read? Join 200,000+ readers and get the best of Moneywise straight to your inbox every week. Subscribe for free.

This article provides information only and should not be construed as advice. It is provided without warranty of any kind.