Tax Law Wizard

How to Plan for Capital Gains Tax Before You Sell

Plan around capital gains tax before you sell — cost base, exemptions, holding periods, loss harvesting, gifts and inheritances, and instalment obligations.

Takes 5–7 minutes · Free · Confidential · Runs in your browser

You have a saved session. Pick up where you left off?

The Gain Is Not the Sale Price — It's the Cost Base

Capital gains tax is charged on the gain, not the proceeds, and the gain is the difference between what you sell for and your adjusted cost base. That cost base is where much of the planning lives, because it is more than the original purchase price: it includes acquisition costs such as legal fees and commissions, and — importantly — the cost of capital improvements you made along the way. A renovated kitchen, a new roof, or an addition raises the cost base and directly lowers the taxable gain, but only if you kept the records to prove it. The single most common way people overpay capital gains tax is by forgetting improvements they can no longer document.

How the two countries tax the resulting gain differs. Canada includes a portion of a capital gain in income (the inclusion rate) and taxes it at your marginal rate, with no distinction for how long you held the asset. The United States instead separates short-term gains, on assets held a year or less and taxed at ordinary income rates, from long-term gains taxed at lower preferential rates. For a US seller, that one-year line can be decisive: where it is feasible, crossing it before selling can materially reduce the tax on the same gain.

Exemptions, Loss Harvesting, and Timing

Several exemptions can shelter part or all of a gain, and they reward planning before the sale rather than after. A principal residence is the biggest for most people: Canada's principal residence exemption can eliminate the gain on a home that qualified for every year of ownership, while the US primary-residence exclusion shelters up to $250,000 of gain, or $500,000 for a married couple, when ownership and use tests are met. In both cases you must still report the sale and satisfy the conditions, and any period the property was rented or used for business can make part of the gain taxable. Qualifying small-business shares carry their own powerful reliefs — Canada's lifetime capital gains exemption and the US qualified small business stock rules — but both hinge on strict, technical tests that usually require advance planning.

Beyond exemptions, timing and offsetting are the everyday tools. Capital losses offset capital gains in both systems, so realizing a loss-making investment in the same year as a gain — 'loss harvesting' — can reduce or erase the tax. The trap to avoid is the superficial-loss rule in Canada and the wash-sale rule in the US, both of which deny the loss if you repurchase the same or an identical asset within 30 days. Spreading a large disposition across two tax years, or timing it for a lower-income year, can also lower the marginal rate applied to the gain. All of these levers exist only while you still hold the asset, which is why planning before you sell is worth far more than reacting after.

Gifts, Inheritances, and Paying the Tax on Time

How you acquired an asset shapes the gain as much as how you dispose of it. In the United States, inherited assets generally receive a 'stepped-up' basis equal to their value at the date of death, which can wipe out decades of accrued gain, whereas a lifetime gift carries over the giver's original basis. Canada has no estate or gift tax, but treats a gift or a death as a deemed disposition at fair market value — meaning tax can arise as though the asset were sold, even though no cash changed hands, subject to rollovers such as the spousal rollover that can defer it. Identifying how you got the asset, and any deemed proceeds attached to it, is essential to computing the real gain.

Finally, capital gains tax is rarely withheld, so a large gain can create a filing-time liability and even an obligation to make an instalment or estimated payment during the year. After a significant sale, confirm whether a pre-payment is required so the bill is not a shock. Given how technical exemptions, deemed dispositions, and small-business reliefs can be, a large disposition is worth modelling with an accountant before it happens. This wizard is educational only and is not tax or investment advice, and it does not calculate your tax.

Frequently Asked Questions

How is a capital gain calculated?
It's the difference between your sale proceeds and your adjusted cost base — the purchase price plus acquisition costs and the cost of capital improvements. Documented improvements raise the cost base and lower the taxable gain, so keeping those records is one of the best ways to reduce capital gains tax.
Is my home exempt from capital gains tax?
Often largely or fully. Canada's principal residence exemption can eliminate the gain on a home that qualified for every year you owned it, and the US excludes up to $250,000 of gain ($500,000 for a couple) if ownership and use tests are met. You must still report the sale, and rental or business use can make part taxable.
Does how long I hold an asset affect the tax?
In the US, yes — assets held over a year get lower long-term rates, while one year or less is taxed at ordinary income rates, so crossing the one-year line can matter. In Canada there is no holding-period distinction; a portion of the gain is included in income and taxed at your marginal rate regardless of duration.
Can I use investment losses to reduce capital gains tax?
Yes. Capital losses offset capital gains in both countries, so realizing a loss in the same year as a gain can reduce or erase the tax. Watch the superficial-loss rule (Canada) and wash-sale rule (US), which deny the loss if you repurchase the same or an identical asset within 30 days.
What happens to capital gains on gifted or inherited assets?
In the US, inherited assets usually get a stepped-up basis to date-of-death value, while gifts carry over the giver's basis. Canada has no gift or estate tax but treats a gift or death as a deemed disposition at fair market value, which can trigger tax unless a rollover applies. How you acquired it changes the gain.
Do I have to pre-pay tax on a large capital gain?
Possibly. Capital gains are rarely withheld, so a large gain can create a filing-time liability and an obligation to make an instalment (Canada) or estimated payment (US) during the year. After a significant sale, confirm whether a pre-payment is required so the tax is not a surprise.

Add this wizard to your website

Embed this free Capital Gains Planning wizard on your law firm site — it runs in an iframe and includes a link back to LexScale.ai.

This wizard provides general educational information about capital gains tax in Canada and the US only — it is not tax, legal, or investment advice, and does not calculate your tax. Inclusion rates, exemptions, and rules differ by jurisdiction and change over time. Consult an accountant or tax lawyer before a significant sale.

Ready to grow your firm with AI?