taiga financeJoin the waitlist
← Glossary

Capital gains

Capital gains tax

A capital gain is the profit on the sale of an asset: the price received minus its cost basis. US tax law sorts each gain by how long the asset was held, short-term at one year or less and long-term at more than a year, and taxes the two kinds at different rates, in the year of the sale.

What is a capital gain?

The gain is measured against the basis, whatever the asset was worth on any other day. A share bought at $80 and sold at $100 has a $20 gain. A sale below the basis produces a capital loss.

A gain exists only when the asset is sold. A holding that has risen has an unrealized gain, which is not income and is not taxed; the sale realizes it. The IRS counts the gain in the year the sale happens, not the year the price moved.

The one-year line runs per lot. A holding bought in several purchases is several lots, each with its own basis and its own date, so one sale of a hundred shares can produce a long-term gain on some of them and a short-term gain on the rest. Short-term gains are taxed as ordinary income; long-term gains are taxed at the long-term capital gains rates, which are set separately from the ordinary rates. Shares from equity compensation follow the same rule from their own start dates, and ESPP and ISO shares carry a second test on top of it.

How a capital gain works, with numbers

A fund is held in two lots: 50 shares bought on March 3, 2025 at $80, and 50 shares bought on February 10, 2026 at $95. All 100 shares are sold on September 15, 2026 at $100.

The first lot was held more than a year, so its $1,000 gain is long-term. The second was held seven months, so its $250 gain is short-term. The sale is one order and $10,000 of proceeds, but the two gains are reported separately, because each lot has its own basis and its own date.

Lot 1 sale, 50 sh × $100
$5,000
Lot 1 basis, 50 sh × $80
− $4,000
Long-term gain, held 18 months
$1,000
Lot 2 sale, 50 sh × $100
$5,000
Lot 2 basis, 50 sh × $95
− $4,750
Short-term gain, held 7 months
$250
Capital gain on the sale
$1,250

Why a capital gain matters

The tax is on the gain. In the example $10,000 changes hands and $1,250 is income; without the basis the whole $10,000 would read as gain.

The term sets which rates apply, and the term is decided by the lot's date, so which lots a sale comes from decides the tax on it. A broker sells the oldest lots first unless specific shares are identified before the sale.

Losses net against gains. A capital loss realized in the same year reduces the gain that is taxed, which is the mechanism behind tax-loss harvesting.

Capital gains in Taiga Finance

In Taiga Finance a holding's drawer in Investments shows a “Lots” table, one row per purchase, with “Acquired”, “Shares”, “Value”, “Gain $” and “Term”. Gain $ is the lot's current value minus its cost, signed, and Term reads “LT” once the lot has been held more than a year and “ST” before that. It is the unrealized gain on shares still held: the Investments ledger records no sales and shows no realized gain, no tax rate and no tax owed. A lot whose cost is unknown reads “Unknown” under Acquired, “—” under Gain $ and “?” under Term.

Two other surfaces price a realized gain. In Equity Comp, a recorded sale of an ESPP lot or an exercise lot reads “LT gain” or “ST gain” on its row, with the ordinary-income part beside it on an ESPP or ISO lot. An imported crypto ledger shows “Realized P&L (YTD)”, “Realized gains YTD” and “Realized losses YTD”, and an “Estimated tax” at a marginal rate typed in, marked as a flat-rate approximation that does not separate short-term from long-term.

Accounts & balances →

Key takeaways: Capital gains

  • A capital gain is the sale price minus the cost basis. It is taxed in the year of the sale.
  • Held one year or less, the gain is short-term and taxed as ordinary income; held more than a year, it is long-term and taxed at the long-term capital gains rates.
  • The term runs per lot, so one sale across two lots can produce a long-term gain and a short-term gain at once.
  • Taiga Finance shows each lot's unrealized gain and its term, LT or ST, in the holding's drawer; it prices a realized gain only on a recorded Equity Comp sale or an imported crypto ledger.

Questions about Capital gains

What is a capital gain?

The profit on the sale of an asset: the price received minus its cost basis. A share bought at $80 and sold at $100 has a $20 capital gain. A sale below the basis produces a capital loss.

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

The holding period. A gain on an asset held one year or less is short-term and taxed as ordinary income. A gain on an asset held more than one year is long-term and taxed at the long-term capital gains rates, which are set separately. The line is counted per lot, from the day after the lot was acquired.

Does Taiga Finance show capital gains?

It shows the unrealized gain and the term, LT or ST, of each lot in a holding's drawer in Investments. It shows a realized gain on a recorded sale in Equity Comp, and in the crypto ledger's year-to-date figures. It calculates no capital gains tax on the Investments ledger and files no return.

Related terms

Holding period →A holding period is the time between acquiring a share and selling it. US tax law uses it twice: a share held more than one year sells at the long-term capital gains rates, and ESPP or ISO shares also need more than two years from the option's grant date for the sale to be a qualifying disposition.Cost basis →Cost basis is what an asset cost for tax purposes: the amount paid for it, plus any part of its value that has already been taxed as income. A sale is taxed on the difference between the price received and the basis, so the basis decides how much of a sale counts as gain.Tax lot →A tax lot is a batch of shares bought at one time and one price, tracked on its own for cost basis and holding period. A holding is the sum of its lots, and a sale is taxed lot by lot: the gain or loss and its term come from the lot the shares are sold from.Unrealized vs realized gain →An unrealized gain is the difference between what a holding is worth at today's price and its cost basis while the holding is still owned; a realized gain is that difference on shares that have been sold, locked in at the sale price. The unrealized figure changes with each new price; the realized figure is fixed.Tax-loss harvesting →Tax-loss harvesting is selling a lot that stands below its cost basis so that the loss becomes realized and can be netted against realized gains in the same tax year. A loss is only a tax figure once the lot is sold; while the lot is held, the loss is unrealized and offsets nothing.

With Taiga Finance, the whole picture is one glance away.