do you pay taxes when you sell a house

Do You Pay Taxes When You Sell a House?

Do you pay taxes when you sell a house? This is one of the most common questions homeowners ask when they start thinking about selling. The answer depends on several factors such as how long you lived in the property, how much profit you made, and where the home is located. For many people in Pittsburgh and across Pennsylvania, taxes are a concern because they directly affect how much money you walk away with after the sale.

This guide breaks down the different types of taxes, explains exemptions that may help you avoid paying them, and shows you how local rules in Pennsylvania can change the outcome.

Capital Gains Tax Basics

Capital Gains Tax Basics

When you sell your home for more than you paid, the profit is called a capital gain. The IRS taxes these gains, but not all home sales trigger a tax bill. If your profit is under certain limits, you may qualify for an exemption.

  • Single filers can exclude up to $250,000 of profit.
  • Married couples filing jointly can exclude up to $500,000 of profit.

To qualify, you must have owned and lived in the house for at least two of the last five years. This rule is called the “ownership and use test.” If you meet it, you can sell your home without owing federal taxes on the profit up to those limits.

It’s important to understand how this works in real life. The IRS looks at your net profit after subtracting closing costs, selling expenses, and your remaining loan balance. For example, if a married couple sells their Pittsburgh home for $700,000 but originally paid $300,000, their raw gain is $400,000. After subtracting $25,000 in closing costs, commissions, and loan payoff expenses, their net profit might be closer to $375,000. Because that is below the $500,000 federal exclusion for married couples, they would owe no federal capital gains tax.

This rule is one of the biggest benefits of homeownership, allowing many sellers to walk away with large profits tax-free.

Short-Term vs. Long-Term Gains

Short-Term vs. Long-Term Gains

Not all profits are treated equally. If you sell a home you owned for less than one year, the IRS treats the profit as short-term and taxes it like regular income. That could push you into a higher tax bracket and significantly increase the amount owed.

On the other hand, if you owned the house for more than a year, it is considered a long-term capital gain. Long-term gains are usually taxed at lower rates, ranging from 0% to 20% depending on your income.

To put this in perspective: if you sold a home with a $100,000 gain, and you fall into the highest long-term capital gains bracket, you could owe up to $20,000 in federal taxes. But because you live in Pennsylvania, you would also owe the state’s 3.07% income tax on that same gain. That means another $3,070 would be due to Pennsylvania, for a combined total of $23,070 in taxes.

This combination of federal and state taxes is why it’s important to calculate both levels before selling, especially if you’re asking yourself if you pay taxes when you sell a house in Pennsylvania.

Depreciation Recapture

This mostly affects landlords and real estate investors. If you rented your house out and claimed depreciation deductions on your taxes, the IRS requires you to “recapture” that depreciation when you sell. The recaptured amount is taxed at a rate of up to 25%.

For example, if you deducted $40,000 in depreciation over the years, you’ll owe taxes on that amount when you sell, even if the overall gain qualifies for the home sale exclusion. This is important for anyone selling rental property.

For more details on how local taxes can factor in, you can read our full article on Pittsburgh real estate taxes.

State Taxes in Pennsylvania

do you pay taxes when you sell a house

In Pennsylvania, capital gains are treated as regular taxable income. This means that even if you qualify for the federal exemption, you may still owe state taxes on your profit. The state currently taxes income, including capital gains, at a flat rate of 3.07%.

Let’s continue the earlier example. If you’re married and sell a home with a $375,000 profit, you won’t owe anything to the IRS because it’s under the $500,000 exclusion. However, you’ll still owe Pennsylvania’s 3.07% tax on that profit, which comes out to about $11,512.

While the 3.07% rate is much lower than federal tax brackets, it still matters when you’re calculating the true cost of selling. Pittsburgh homeowners should also remember local school and borough taxes that come into play during closing. These are not income taxes, but they can add thousands in transfer costs.

Local Transfer Taxes

Another important cost in Pittsburgh is the real estate transfer tax. This is a local tax paid when a property changes hands. The rate is typically split between the buyer and seller, though it can vary by agreement. In the City of Pittsburgh, the combined state, school district, and city transfer tax is about 5%. Sellers usually cover half of that.

That means if you sell a $200,000 home, you could owe around $5,000 just in transfer taxes. It is not a capital gains tax, but it reduces the net amount you keep from the sale. You can see the official breakdown on the Allegheny County Realty Transfer Taxes page.

When You Might Not Owe Taxes

do you pay taxes when you sell a house

Here are common situations where you may not owe taxes when you sell:

  • Your profit falls under the federal exclusion limit.
  • You lived in the home for at least two of the last five years.
  • You are selling due to hardship exceptions such as divorce, health issues, or job relocation.
  • You qualify for a 1031 exchange when selling an investment property and reinvesting in another property.

These scenarios can save you thousands and are worth reviewing with a tax professional.

Special Cases: Inherited Homes

If you inherit a property, the tax rules are different. The home’s value is “stepped up” to the market value at the time of inheritance. If you sell soon after, there may be little or no taxable gain.

For heirs in Pennsylvania, however, there is an inheritance tax. The rate depends on your relationship to the deceased. For example, children pay 4.5% while siblings pay 12%. To learn more, see our full breakdown on how inherited property is taxed.

Vacant vs. Owner-Occupied Sales

Vacant vs. Owner

Selling a vacant property may reduce buyer interest, while an owner-occupied home can often sell faster. But from a tax perspective, the difference lies in whether the property was your primary residence. If you moved out years ago and rented it, the IRS may not view it as a primary home anymore, which could impact your exemption eligibility.

If you own a vacant property in Pittsburgh and want to sell quickly without worrying about capital gains surprises, working with a local buyer might be the easiest route. For example, see our guide on the hidden costs of holding a vacant property.

Example: Selling a Home in Pittsburgh

Let’s say you bought a house in Pittsburgh for $150,000 and sold it years later for $300,000. That’s a $150,000 profit.

  • If you’re single, the $150,000 gain is below the $250,000 exclusion. You owe nothing in federal capital gains.
  • You would still owe Pennsylvania’s 3.07% tax on the $150,000, which comes to about $4,605.
  • On top of that, you would split the transfer tax with the buyer, adding around $5,000 more in costs.

This example shows how federal, state, and local rules all combine to affect your final payout.

Why Planning Matters

Tax Planning

Taxes are one of the biggest overlooked costs of selling a home. Many homeowners focus on repairs or closing costs but forget that the IRS and state want their share. Planning ahead can help you time the sale, keep more of your profit, and avoid surprises.

Local Pittsburgh homeowners in particular should pay attention to transfer taxes and Pennsylvania’s flat income tax. These add up quickly, especially on higher-priced homes.

Final Thoughts

So, do you pay taxes when you sell a house? The short answer is sometimes. If your gain is under the federal exclusion limits and it was your primary residence, you may avoid federal capital gains altogether. But you will still face Pennsylvania’s income tax and Pittsburgh’s transfer taxes.

If your home needs major repairs or you’re worried about late taxes, selling directly to a local buyer can give you peace of mind. At Buys Houses, we buy properties in any condition and work with your timeline. You can sell your Pittsburgh home quickly without stressing about surprises.

For homeowners looking for trusted local expertise, Home Buyers of Pittsburgh is here to provide fair offers and an easy selling process.