Everything You Need to Know About Capital Gains

School of Saving and Investing

A blue pie chart with a red slice that reads “tax” separating from the pie

Most people measure their investments by a number on the statement, but that number is only part of the story. The moment an investor sells, the tax code takes notice, and the tax burden often depends on rules many investors never learned.

Capital gains tax is the culprit here, and it’s one of several taxes that follow investors into retirement. Fortunately, it is among the most controllable, but capitalizing on the details – those that turn big mistakes into tax advantages – requires a bit of specialized knowledge.

When Does a Capital Gain Become Taxable

A capital gain is the profit on the sale of an asset – a stock, a mutual fund, real estate, cryptocurrency, or a collectible. It equals the sale price minus the cost basis, which is generally what the owner paid plus certain adjustments.

One detail serves to confuse many investors – a gain on paper is not taxed at all, because the tax applies only when the asset is sold and the gain is ‘realized.’ This means an investment can climb for years without triggering a single dollar of tax, right up until the moment of sale.

That single feature hands investors a great deal of control over when, or if, capital gains tax is owed. The rest of the rules simply decide the size of the bill once a sale happens.

Capital Gains Are Classified as Short-Term and Long-Term

The length of time an investor holds an asset decides how the gain is taxed. The dividing line is one year, measured from the day after purchase to the day of sale.

An asset held for one year or less produces a short-term gain, taxed as ordinary income at the same rates as wages – currently 10% to 37%. On the other hand, an asset held for more than one year produces a long-term gain, which qualifies for lower, preferential rates. This means a single day can change taxes dramatically.

Consider this scenario – an investor with $70,000 of taxable income sells stock at a $20,000 gain. Held for more than a year, the long-term gain is taxed at 15%, or $3,000. However, selling the stock before the one-year mark results in a short-term gain. Then, the same $20,000 lands in the 22% ordinary bracket, and results in a tax of $4,400. This means a window as small as one day accounts for a $1,400 difference in tax burden.

For most investors, patience past the one-year mark is the simplest way to cut the tax on capital gains, but that is not always feasible. An experienced financial advisor can help to determine the optimal time to sell.

The remainder of this article assumes a long-term gain unless noted otherwise.

The Three Long-Term Capital Gains Rates for 2026

Long-term gains face one of three rates in 2026 – 0%, 15%, or 20%. The rate depends on the seller’s total taxable income for the year, not on the size of the gain alone.

The breakpoints below, set by the IRS for the 2026 tax year, show where each rate begins for every filing status. Keep in mind that these figures are ‘taxable income’ – the amount left after deductions.

Filing Status0% Rate15% Rate20% Rate
SingleUp to $49,450$49,451 – $545,500Above $545,500
Married Filing JointlyUp to $98,900$98,901 – $613,700Above $613,700
Head of HouseholdUp to $66,200$66,201 – $579,600Above $579,600
Married Filing SeparatelyUp to $49,450$49,451 – $306,850Above $306,850

Source: IRS Revenue Procedure 2025-32. Figures represent taxable income for tax year 2026.

How Gains Stack on Top of Ordinary Income

Long-term gains do not sit in a bracket of their own. They stack on top of ordinary income, which fills the brackets first, and then, the gain is taxed at the rate for the band where it lands. This stacking creates a genuine opportunity.

Bar showing ordinary income filling the lower brackets first, with a long-term gain stacked on top and split across the 0%, 15%, and 20% bands

Picture a retired couple filing jointly with $60,000 of taxable income who sell long-held stock at a $50,000 gain. The 0% bracket for joint filers reaches $98,900, so the first $38,900 of that gain is taxed at 0%. Only the remaining $11,100 crosses into the 15% band, for a tax of just $1,665 on the full $50,000 gain.

Low-income years are prime windows to realize gains at little or no tax. For many retirees, the early years after leaving work – before required distributions and full Social Security arrive – offer exactly that kind of room.

The 3.8% Net Investment Income Tax on Higher Incomes

Investors with higher incomes face one more layer – the Net Investment Income Tax [NIIT], an extra 3.8% on investment income. It applies on top of the regular capital gains rate.

The surtax begins once modified adjusted gross income [MAGI] passes a fixed threshold – $200,000 for single filers and heads of household, or $250,000 for married couples filing jointly. These thresholds have not moved since 2013 and are not adjusted for inflation, so more households cross them each year.

The 3.8% applies to the smaller of two amounts – the net investment income, or the income above the threshold. At the very top, the combined federal rate on a long-term gain reaches 23.8%.

Because the thresholds are frozen, a single large sale can push an otherwise moderate earner into NIIT territory for one year. A gain from the sale of a home or a business is the most common trigger. An experienced financial advisor can provide valuable insights into selling large assets and help avoid unnecessary taxation.

Higher Rates for Collectibles and Real Estate Depreciation

There are a few exceptions to the standard taxation schedule. For example, gains on collectibles – art, coins, antiques, and precious metals – are taxed at a maximum 28% rate.

Real estate also carries its own wrinkle. The portion of a property gain that reflects past depreciation deductions, known as unrecaptured Section 1250 gain, is taxed at the maximum 25% rate. This rule often comes as a big surprise to landlords selling rental properties that are allowed to depreciate, as these often trigger the 25% rule.

These higher ceilings often come as a surprise to investors who assumed every long-term gain enjoyed the 15% rate. To avoid unexpected taxes, consult an experienced financial advisor.

The Home Sale Exclusion Can Erase Taxes on a Large Gain

For many households, the largest capital gain of their lives comes from selling a home. Fortunately, a generous exclusion softens that blow, and it removes the tax on a big slice of the gain for most sellers.

A single filer can exclude up to $250,000 of gain on a main home, and a married couple filing jointly can exclude up to $500,000. Only the gain above those limits is taxable.

Two tests decide who qualifies. The owner must have owned the home for at least two of the five years before the sale, and they must have lived in it as a main home for at least two of those five years.

To illustrate, consider a couple who bought a home decades ago and sold it with a $700,000 gain. The $500,000 exclusion leaves $200,000 as a taxable long-term gain, rather than the full $700,000. That is one reason downsizing a long-held home in retirement can cost less than it first appears, though a very large gain can still generate tax.

How Capital Losses Offset Gains

Not every investment ends in a gain, and from a tax perspective, losses are far from wasted. The silver lining to a capital loss is that it offsets a capital gain dollar for dollar, so only the net gain is taxed.

In addition to offsetting capital gains, up to $3,000 of excess losses can be deducted against ordinary income – wages, a pension, or retirement withdrawals. Further, any loss beyond the $3,000 threshold carries forward to future years with no expiration.

As an example, suppose an investor realizes $5,000 in gains and $15,000 in losses in the same year. The losses first erase the $5,000 gain. Of the remaining $10,000 loss, $3,000 offsets ordinary income this year, and the last $7,000 carries into future years.

An investor who plans well turns a capital loss into a tool that trims the tax on gains and even on ordinary income. The catch is timing. A loss taken in the right year offsets a gain that would otherwise be taxed. That link between losses and timing is where real planning begins, and an experienced financial professional can help determine the optimal time to sell.

Timing and Other Ways to Optimize Capital Gains

The rules above hand investors several levers, and small timing choices can move the bill substantially. As a result, a handful of well-known strategies have emerged.

The key takeaway is that capital gains decisions rarely stand alone. Investors weighing a large sale should consult an experienced financial advisor for assistance in modeling the full tax impact before anything is sold.

Manage Your Capital Gains With Meld Financial

At Meld Financial, our team of tax, legal, and investment professionals works together to manage the tax impact of your investment gains. We can project what a sale will cost across federal rates, the 3.8% surtax, and your other income. From there, we help you put a clear plan in place before you sell.

This kind of coordination is just one part of our comprehensive wealth management program, Financial Fingerprint®. We developed this plan over decades of helping clients reach their financial goals, and it is tailored to your specific needs while adapting to match changing circumstances. With your Financial Fingerprint®, you can balance every part of your financial life.Contact us today to discuss your situation and get your Financial Fingerprint®.

Frequently Asked Questions About Capital Gains Tax

The questions below address the situations investors raise most often about capital gains tax.

What is the capital gains tax rate in 2026?

Long-term capital gains face one of three rates in 2026 – 0%, 15%, or 20%. The rate depends on the seller’s total taxable income, not the size of the gain. Short-term gains work differently. An asset held for one year or less is taxed as ordinary income, at rates from 10% to 37%.

What is the difference between short-term and long-term capital gains?

The holding period sets the difference. An asset held for one year or less produces a short-term gain, taxed as ordinary income. An asset held for more than one year produces a long-term gain, taxed at the lower preferential rates. The one-year mark, measured from the day after purchase, decides which set of rates applies.

Do I owe capital gains tax if I don’t sell the asset?

No. A gain on paper is never taxed. The tax applies only when the asset is sold and the gain is realized. This feature hands investors real control over timing. An investment can climb for years without triggering a single dollar of tax, right up until the moment of sale.

How much can I earn and still pay 0% on long-term capital gains?

The 0% rate reaches up to $49,450 in taxable income for single filers and up to $98,900 for married couples filing jointly in 2026. Long-term gains stack on top of ordinary income. A low-income year can leave room in the 0% band, which makes the early years of retirement a prime window to realize gains at little or no tax.

What is the Net Investment Income Tax?

The Net Investment Income Tax [NIIT] adds 3.8% to investment income for higher earners. It applies once modified adjusted gross income [MAGI] passes $200,000 for single filers or $250,000 for married couples filing jointly. These thresholds have not changed since 2013. At the very top, the combined federal rate on a long-term gain reaches 23.8%.

How does the home sale capital gains exclusion work?

A single filer can exclude up to $250,000 of gain on a main home. A married couple filing jointly can exclude up to $500,000. Only the gain above those limits is taxable. Two tests decide eligibility. The owner must have owned the home and lived in it as a main residence for at least two of the five years before the sale.

Can capital losses reduce my capital gains tax?

Yes. A capital loss offsets a capital gain dollar for dollar, so only the net gain is taxed. When losses exceed gains for the year, up to $3,000 of the excess can be deducted against ordinary income. Any loss beyond that carries forward to future years with no expiration.

How can I lower my capital gains tax?

Several proven levers exist. Investors who hold past one year shift from ordinary rates to the lower long-term rates. A sale in a low-income year can capture the 0% or 15% band. A donor who gives appreciated assets to charity skips the gains tax while earning a deduction. Assets passed at death receive a step-up in basis, so the built-up gain can escape income tax entirely.

Trending Articles

A person looking at a chalkboard filled with complex mathematical calculations. This is meant to represent calculating provisional income or combined income.
How to Calculate Provisional Income (a.k.a. Combined Income)

School of Social Security & Medicare

Your provisional income determines if Social Security benefits are taxable, so it is important to know how to calculate this figure.

map of the united states with tags on the worst states to retire
The 10 Worst States for Retirement

School of Financial Wellness

The location you choose for your retirement can have a significant impact on your costs, safety, activities, and overall happiness.

Wealth managers are key to your investment strategy.
5 Characteristics of a Quality Wealth Manager

School of Financial Wellness

Looking for a quality wealth manager? We pulled together our list of the 5 most important qualities to consider during your search.

Why Meld Financial?

Meld Financial, Inc. is an independent wealth management firm located in Birmingham, AL.

We specialize in financial planning, investment management, employee benefits and executive benefits for individuals, families, trusts, foundations and institutions.

We provide independent and objective services melded with customer-driven financial goals.

Mark McGarvey - Founder - Meld Financial

“We will always recommend the same course of action we would choose for ourselves, given the same circumstances.”

-Mark McGarvey, Founder