Each rule, in a sentence or two, with the paragraph it comes from.
Gain and loss
Gain is the amount realized over your adjusted basis; loss is the adjusted basis over the amount realized. The amount realized is money plus the fair market value of other property received. The whole gain or loss is recognized unless another section says otherwise.
IRC 1001(a), (b), (c)
Sources
Capital assets
Property you hold is a capital asset unless it falls in the listed exclusions (inventory, depreciable business property, certain receivables and a few others). Individuals can deduct losses only from business, profit-seeking transactions and casualty or theft.
IRC 1221(a), 165(c)
Sources
Short-term and long-term
Long-term means held more than 12 months (more than a year); short-term is a year or less. The count starts the day after acquisition and includes the day of sale. A gift at the donor's basis tacks the donor's time; property from a decedent sold within a year of death is treated as held more than a year; a replacement after a wash sale takes the old holding period.
IRC 1222(1)-(4), 1223(1)-(3), (9)
Sources
Basis
Basis is generally cost. A gift takes the donor's basis, except that for a loss the basis is the lower fair market value at the gift. Inherited property takes the fair market value at death (or the alternate valuation date). A wash sale adds the disallowed loss to the basis of the replacement.
IRC 1012(a), 1015(a), 1014(a), 1091(d)
Sources
The rates
Net capital gain is taxed at
0%,
15% or
20%, depending on taxable income, with higher maximums for collectibles and unrecaptured
section 1250 gain. Qualified dividends use the same rates. Short-term gain is taxed as ordinary income.
IRC 1(h)(1), (5), (6), (11); 1(j)(5)
Sources
Netting
Net short-term and net long-term amounts are computed separately, then combined. Net capital gain is net long-term gain over net short-term loss. A net overall loss goes to the loss limit and carryover.
IRC 1222(5)-(11)
Sources
The loss limit and carryover
Capital losses offset capital gains without limit. Beyond that, an individual may deduct up to $3,000 a year (half that if married filing separately). The rest carries forward indefinitely and keeps its short-term or long-term character.
IRC 1211(b), 1212(b)(1)-(2); 165(f)
Sources
Wash sales
No deduction for a loss on stock or securities if, from 30 days before to 30 days after the sale, you acquire (by purchase or taxable exchange) substantially identical stock or securities, or a contract or option to acquire them. The loss is added to the basis of the replacement shares and its holding period carries over. A purchase for your IRA or Roth IRA is a wash sale, and the loss is not added to the IRA's basis.
IRC 1091(a), (d); Rev. Rul. 2008-5; Reg. 1.1091-1
Sources
Broker reporting
Brokers report gross proceeds, and for covered securities the basis and whether the gain is short-term or long-term. Basis defaults to first-in, first-out unless you identify the lot. A broker applies the wash sale rule only to identical securities in the same account.
IRC 6045(a), (b), (g); Reg. 1.6045-1
Sources
Digital assets
Digital assets are property. Gain or loss follows the capital asset rules. For units not in a broker's custody, you identify the units sold by your records at the time of the sale, otherwise first-in, first-out. Brokers report sales on Form 1099-DA starting January 1, 2025, with basis for covered securities from January 1, 2026.
Notice 2014-21 Q&A 1, 7; Reg. 1.1012-1(j); Reg. 1.6045-1(q)
Sources