Selling a home requires quite a bit of legwork. Your Realtor® will do quite a bit of it, but if you’re like most people, you’re probably reeling from everything that’s going on. From closing costs to taxes, there’s a lot to consider.

Let’s talk about those taxes.

The Tax Implications of Selling a Home

If your home was your primary residence for at least two out of the last five years, you may be excluded from having to pay taxes on the capital gains from the sale.

In some cases, you can take the exclusion on your profit even if you don’t meet their two-year requirement. For example, if you couldn’t live there because you were deployed by the military or another government organization, or if you’ve gotten divorced, you could be eligible.

Some people are eligible for partial exclusions, but those vary based on circumstance.

If you are required to pay taxes, the amount will be based on the sales price, your closing costs and your basis. Some things are deductible, such as