Sales, losses, and special capital asset rules
Sales of capital assets and securities
Capital assets include almost everything you own and use for personal purposes, pleasure, or investment, such as your home, car, collectible items, stocks, bonds, and digital currency held for investment. Inventory and other property held mainly for sale to customers, business accounts receivable, and depreciable property or real estate used in a trade or business are not capital assets. Assets held for one year or less before being sold are short-term transactions, taxed at ordinary income tax rates. Assets held for more than one year before being sold are long-term transactions, taxed at the more favorable capital gain rates. Capital losses offset capital gains in full, but a net capital loss is deductible against other income only up to $3,000 per year ($1,500 if married filing separately), and any excess loss carries over to future years until it’s used up.
Cost basis, also known as “basis,” is the original purchase price of your investment. Cost basis is adjusted for stock splits, dividends, and return of capital distributions and is used to determine the capital gain or loss when the asset is sold. Basis will be discussed in more detail in Part 2-Businesses. Refer to IRS.gov for more information.
A taxpayer who can’t adequately identify which shares of a holding were sold must treat the earliest-acquired shares as sold first (first-in, first-out, or FIFO); average basis can be elected only for mutual fund shares and dividend reinvestment plan shares.
Amount realized and amount recognized
Amount realized is the total value received from a sale or disposition of an asset, including cash, the fair market value of any property received, and the value of any liabilities assumed by the buyer. Subtracting the adjusted basis (the original purchase price plus improvements) and any expenses associated with the sale from the amount realized gives the realized gain or loss. The amount recognized is the portion of that realized gain or loss actually reported for tax purposes - it equals the realized amount unless a special rule, like the wash sale rule, defers or disallows some of it.
Example:
- Chris sold a stock for ; his initial cost (basis) was . Chris’s amount realized is , and his realized gain is . The amount recognized is , the taxable portion, which in this case is the same as the realized gain.
Short-term capital gain example:
- On January 29, 2025 Johnny purchased shares of XYZ stock, total . On February 20, 2025, Johnny sold the same shares for . Johnny has realized and recognized a short-term capital gain. Because he held the shares one year or less, the gain is taxed at his ordinary income tax rate, which depends on his total taxable income.
Short-term capital loss example:
- On February 12, 2025, Mary purchased shares of XYZ stock at a share, for a total of . On April 25, 2025, the stock went down in price to a share, so Mary sold all shares. Mary realizes and recognizes a short-term loss of . Mary will recognize a loss at her own tax rate.
Long-term capital gain examples:
- On February 18, 2024, Esmeralda went to a yard sale and bought a silver tea set for . Then Esmeralda paid to make a minor repair to the silver tea set before she decided to sell it. On May 13, 2025, Esmeralda sold the silver tea set for . Esmeralda realized , which was the amount she received from the sale, but her repair was added to her original basis, making her adjusted basis . Therefore, Esmeralda recognizes (pays tax on) . Esmeralda will have capital gains tax treatment on the sale of the silver tea set.
Long-term capital loss examples:
On March 7, 2023, April bought shares of XYZ Stock for . On April 24, 2025, she sold the same amount of shares for . April has realized and recognized a long-term capital loss.
Bernard bought a house as an investment for and never lived in it. Five years later, he sold it for . Bernard has realized and recognized a long-term capital loss (had the house been his home, the loss would not be deductible); if he has no capital gains, he can deduct only of it against other income for the tax year and carries over the remaining amount.
Stock splits
In a stock split, a company divides its existing shares into more shares. For instance, a 2-for-1 split means each share is split into two new shares. For example, if Harold owns shares and the corporation declares a 2-for-1 split for its shareholders, then Harold will receive more shares, bringing his total to shares. The total value of your shares before and after the split remains the same. The price per share decreases proportionally to the increase in the number of shares.
Scenario
Company: ABC Corp.
Pre-split price: $100 per share
Investor: Marcus owns shares of ABC Corp.
Split: ABC Corp. announces a 2-for-1 stock split.Before the split, Marcus owned shares at each, for a total value of ( shares /share = ).
After the split, Marcus owns shares ( shares shares). The price per share is now (the original price divided by the split ratio: / = ). Marcus’s total value remains ( shares /share ).
On June 3, 2025, the fair market value of ABC stock rose to a share, so Marcus sells shares of ABC for . His amount realized is shares /share ; his cost basis is shares /share . Marcus will realize and recognize a gain of .
Remember that Marcus still holds remaining shares of ABC stock, which he can sell at a later time. Marcus’s tax treatment will depend on the length of time that he has held the shares he had sold.
Wash sales
A wash sale is a transaction in which an investor sells a security at a loss and repurchases a substantially identical security within 30 days before or after the sale - a 61-day window that includes the sale date. The wash sale rule applies to stock and securities and to contracts and options to buy or sell them, but not to commodity futures contracts or foreign currencies. A purchase by the taxpayer’s spouse, a corporation the taxpayer controls, or the taxpayer’s IRA also counts. The disallowed wash sale loss is added to the basis of the repurchased security.
Wash sale disallowed loss example:
On January 30, Curtis overheard a hot tip on a stock and decided to buy shares of Dit Dit Corporation for a share. On February 11, the stock had lost half its value; Curtis got impatient and sold all of his shares to cut his loss. The next day, Curtis repurchased shares of Dit Dit Corporation for . Curtis will realize a loss but cannot recognize it for tax purposes, because he repurchased substantially identical stock the very next day - within the 30-day wash sale window. The disallowed loss is added to the basis of the repurchased shares.
Sales of securities are reported on Schedule D, Form 1040, but traders whose trading is substantial, continuous, and regular and seeks to profit from daily market movements (rather than dividends, interest, or capital appreciation) are in a trading business without applying to the IRS and can deduct their trading expenses as business expenses on Schedule C. Sales of personal items for a profit are taxable, but if sold for a loss, are not deductible. Gains on these transactions are capital gains (long-term rates apply if held more than one year).
The basis of inherited securities is their fair market value at the date of death. Inherited property is treated as held for more than one year, so a sale by the heir produces a long-term gain or loss no matter how briefly the heir actually held it.
Other special property rules are covered elsewhere in the course: installment sales in Capital gains and income, the home-sale exclusion under IRC §121 in Divorce, property, and education planning, and non-business bad debts in Special business deductions, depreciation, and losses.
Options
Buying and selling options. The cost of a put or call is a capital expenditure, not a deduction. If the holder sells the option, the gain or loss is capital, short- or long-term depending on how long it was held; if it expires unexercised, it is treated as sold on the expiration date, so its cost is a capital loss. An exercised call’s cost is added to the basis of the stock bought, and an exercised put’s cost reduces the amount realized on the stock sold. The writer of an option reports nothing when the premium is received: if the option expires, the premium is short-term capital gain; if it is exercised, the premium increases the amount realized (call) or reduces the basis of the stock bought (put).
Section 1256 contracts. Regulated futures contracts, foreign currency contracts, nonequity options (such as commodity futures options and broad-based stock index options), dealer equity options and dealer securities futures contracts held at year-end are marked to market: treated as sold at fair market value on the last business day of the year. Under the 60/40 rule, 60% of the gain or loss is long-term and 40% is short-term, however long the contract was held; the gains and losses are reported on Form 6781 and carried to Schedule D. An ordinary option on a single stock is not a section 1256 contract.
Options an employer grants as pay (nonstatutory options, incentive stock options and employee stock purchase plans) are taught in Earned and investment income.
Mark-to-market tax rules
The mark-to-market (MTM) tax rules primarily apply to traders in securities or commodities who make a specific election under Section 475(f) of the Internal Revenue Code. This accounting method treats certain assets as if they were sold at their fair market value on the last business day of the tax year.
Sales of business property are reported on Form 4797; a net section 1231 loss is ordinary, while a net section 1231 gain (after depreciation recapture) is generally long-term capital gain. Depreciation recapture, including the 25% rate on unrecaptured section 1250 gain, is taught in Special business deductions, depreciation, and losses.
Foreclosures and abandonments (Form 1099-A)
A foreclosure or repossession of property that secures a loan is treated as a sale, and so is abandoning property that secures nonrecourse debt. The lender reports it on Form 1099-A, Acquisition or Abandonment of Secured Property, which shows the debt balance, the property’s fair market value and whether the borrower was personally liable; a lender that also cancels $600 or more of the debt that year may file only Form 1099-C instead. The amount realized depends on the debt:
- Nonrecourse (not personally liable): the full debt, even if the property is worth less; there is no cancellation of debt income.
- Recourse (personally liable): the smaller of the debt or the property’s fair market value. Canceled debt above that value is ordinary cancellation of debt income, separate from the gain or loss. Abandoning property that secures recourse debt produces no gain or loss until the foreclosure is completed.
For example, a home with a $175,000 adjusted basis, a $180,000 mortgage and a $170,000 value is foreclosed. On a nonrecourse loan, the amount realized is $180,000, a $5,000 gain. On a recourse loan, it is $170,000, a $5,000 loss, plus $10,000 of canceled debt income if the lender forgives the rest, unless an exclusion applies. A loss is deductible only on business or investment property, never on a home or other personal-use property.
Digital assets
The Internal Revenue Service (IRS) has long taken the position that digital assets are treated the same as other property and are taxed when you receive them as payment for a transaction or when you sell them or trade them in a transaction. Digital assets received as payment for services are taxable as ordinary income at their fair market value on the date received.
However, issues have come up when digital assets are received for other purposes, such as through forks, staking, or mining - these are ordinary income when received (Schedule 1, or Schedule C if a business); a later sale of digital assets held as capital assets is reported on Form 8949 and carried to Schedule D. Digital assets are not viewed by the IRS as securities, and the wash sale rules do not apply to digital asset transactions. Digital assets are treated as capital assets along with other capital assets for tax loss harvesting.
Form 1099-DA, Digital asset proceeds from broker transactions, is an IRS information return used by digital asset brokers (such as cryptocurrency exchanges) to report proceeds from sales, exchanges, and other dispositions of digital assets such as cryptocurrencies and non-fungible tokens to both taxpayers and the IRS. Taxpayers must use the information on Form 1099-DA, along with their own detailed records, to properly calculate capital gains or losses and report them on Form 8949 and Schedule D of their Form 1040.