Stocks and Bonds: Investment Taxes (2025 IRS Guide)
This guide covers “Stocks and Bonds” within investment taxes. The following material presents the IRS treatment of this topic, including the qualifications, exceptions, and examples in the source section. Read the rules alongside the facts of your own situation before deciding what to report, deduct, or document.
Adapted from Publication 550 (2025), Investment Income and Expenses, published by the Internal Revenue Service. This guide retains the source edition’s years, amounts, deadlines, and examples. It is guidance for that edition, not a statement that the same figures apply to every tax year.
Context for these rules
Basis is a way of measuring your investment in property for tax purposes. You must know the basis of your property to determine whether you have a gain or loss on its sale or other disposition.
Investment property you buy normally has an original basis equal to its cost. If you get property in some way other than buying it, such as by gift or inheritance, its fair market value may be important in figuring the basis.
Stocks and Bonds
The basis of stocks or bonds you own is generally the purchase price plus the costs of purchase, such as commissions and recording or transfer fees. If you acquired stock or bonds other than by purchase, your basis is usually determined by fair market value or the previous owner's adjusted basis as discussed earlier under Basis Other Than Cost.
The basis of stock must be adjusted for certain events that occur after purchase. For example, if you receive more stock from nontaxable stock dividends or stock splits, you must reduce the basis of your original stock. You must also reduce your basis when you receive nondividend distributions (discussed in chapter 1). These distributions, up to the amount of your basis, are a nontaxable return of capital.
Tip:
The IRS partners with companies that offer Form 8949 and Schedule D (Form 1040) software that can import trades from many brokerage firms and accounting software to help you keep track of your adjusted basis in securities. To find out more, go to IRS.gov/Filing.
Identifying stock or bonds sold.
If you can adequately identify the shares of stock or the bonds you sold, their basis is the cost or other basis of the particular shares of stock or bonds.
Identifying digital assets.
The Internal Revenue Code and regulations require taxpayers to maintain records that are sufficient to establish the positions taken on tax returns. You should therefore maintain, for example, records documenting receipts, sales, exchanges, or other dispositions of virtual currency and the fair market value of the virtual currency. For additional information, go to IRS.gov/VirtualCurrencyFAQs.
Adequate identification.
You will make an adequate identification if you show that certificates representing shares of stock from a lot that you bought on a certain date or for a certain price were delivered to your broker or other agent.
Broker holds stock.
If you have left the stock certificates with your broker or other agent, you will make an adequate identification if you:
-
Tell your broker or other agent the particular stock to be sold or transferred at the time of the sale or transfer, and
-
Receive a written confirmation of this from your broker or other agent within a reasonable time.
Single stock certificate.
If you bought stock in different lots at different times and you hold a single stock certificate for this stock, you will make an adequate identification if you:
-
Tell your broker or other agent the particular stock to be sold or transferred when you deliver the certificate to your broker or other agent, and
-
Receive a written confirmation of this from your broker or other agent within a reasonable time.
If you sell part of the stock represented by a single certificate directly to the buyer instead of through a broker, you will make an adequate identification if you keep a written record of the particular stock that you intend to sell.
Bonds.
These methods of identification also apply to bonds sold or transferred.
Identification not possible.
If you buy and sell securities at various times in varying quantities and you cannot adequately identify the shares you sell, the basis of the securities you sell is the basis of the securities you acquired first. Except for certain mutual fund shares, discussed later, you cannot use the average price per share to figure gain or loss on the sale of the shares.
Example.
You bought 100 shares of stock of XYZ Corporation in 2010 for $10 per share. In January 2011, you bought another 200 shares for $11 per share. In July 2011, you gave your son 50 shares. In December 2013, you bought 100 shares for $9 per share. In April 2025, you sold 130 shares. You cannot identify the shares you disposed of, so you must use the stock you acquired first to figure the basis. The shares of stock you gave your son had a basis of $500 (50 × $10). You figure the basis of the 130 shares of stock you sold in April 2025 as follows:
| 50 shares (50 × $10) balance of stock bought in 2010 | $ 500 |
| 80 shares (80 × $11) stock bought in January 2011 | 880 |
| Total basis of stock sold in 2025 | $1,380 |
Shares in a mutual fund or real estate investment trust (REIT).
The basis of shares in a mutual fund (or other regulated investment company) or a REIT is generally figured in the same way as the basis of other stock and usually includes any commissions or load charges paid for the purchase.
Example.
You bought 100 shares of Fund A for $10 per share. You paid a $50 commission to the broker for the purchase. Your cost basis for each share is $10.50 ($1,050 ÷ 100).
Commissions and load charges.
The fees and charges you pay to acquire or redeem shares of a mutual fund are not deductible. You can usually add acquisition fees and charges to your cost of the shares and thereby increase your basis. A fee paid to redeem the shares is usually a reduction in the redemption price (sales price).
You cannot add your entire acquisition fee or load charge to the cost of the mutual fund shares acquired if all of the following conditions apply.
-
You get a reinvestment right because of the purchase of the shares or the payment of the fee or charge.
-
You dispose of the shares within 90 days of the purchase date.
-
You acquire new shares in the same mutual fund or another mutual fund, for which the fee or charge is reduced or waived because of the reinvestment right you got when you acquired the original shares.
The amount of the original fee or charge in excess of the reduction in (3) is added to the cost of the original shares. The rest of the original fee or charge is added to the cost basis of the new shares (unless all three conditions above also apply to the purchase of the new shares).
Choosing average basis for mutual fund shares.
You can choose to use the average basis of mutual fund shares if you acquired the identical shares at various times and prices, or you acquired the shares after 2011 in connection with a dividend reinvestment plan (DRIP), and left them on deposit in an account kept by a custodian or agent. The methods you can use to figure average basis are explained later.
Undistributed capital gains.
If you had to include in your income any undistributed capital gains of the mutual fund or REIT, increase your basis in the stock by the difference between the amount you included and the amount of tax paid for you by the fund or REIT. See Undistributed capital gains of mutual funds and REITs in chapter 1.
Reinvestment right.
This is the right to acquire mutual fund shares in the same or another mutual fund without paying a fee or load charge, or by paying a reduced fee or load charge.
The original cost basis of mutual fund shares you acquire by reinvesting your distributions is the amount of the distributions used to purchase each full or fractional share. This rule applies even if the distribution is an exempt-interest dividend that you do not report as income.
Note:
Table 4-1 is a worksheet you can use to keep track of the adjusted basis of your mutual fund shares. Enter the cost per share when you acquire new shares and any adjustments to their basis when the adjustment occurs. This worksheet will help you figure the adjusted basis when you sell or redeem shares.
Table 4-1. Mutual Fund Record
| Mutual Fund | Acquired 1 | Adjustment to Basis per Share | Adjusted 2 Basis per Share | Sold or Redeemed | |||||||
| Date | Number of Shares | Cost per Share | Date | Number of Shares | |||||||
- 1 Include share received from reinvestment of distributions.
- 2 Cost plus or minus adjustments.
Automatic investment service.
If you participate in an automatic investment service, your basis for each share of stock, including fractional shares, bought by the bank or other agent is the purchase price plus a share of the broker's commission.
Dividend Reinvestment Plans (DRIPs).
If you participate in a DRIP and receive stock from the corporation at a discount, your basis is the full fair market value of the stock on the dividend payment date. You must include the amount of the discount in your income.
Public utilities.
If, before 1986, you excluded from income the value of stock you had received under a qualified public utility reinvestment plan, your basis in that stock is zero.
Stock dividends.
Stock dividends are distributions made by a corporation of its own stock. Generally, stock dividends are not taxable to you. However, see Distributions of Stock and Stock Rights in chapter 1 for some exceptions. If the stock dividends are not taxable, you must divide your basis for the old stock between the old and new stock.
New and old stock identical.
If the new stock you received as a nontaxable dividend is identical to the old stock on which the dividend was declared, divide the adjusted basis of the old stock by the number of shares of old and new stock. The result is your basis for each share of stock.
Example 1.
You owned one share of common stock that you bought for $45. The corporation distributed two new shares of common stock for each share held. You then had three shares of common stock. Your basis in each share is $15 ($45 ÷ 3).
Example 2.
You owned two shares of common stock. You bought one for $30 and the other for $45. The corporation distributed two new shares of common stock for each share held. You had six shares after the distribution—three with a basis of $10 each ($30 ÷ 3) and three with a basis of $15 each ($45 ÷ 3).
New and old stock not identical.
If the new stock you received as a nontaxable dividend is not identical to the old stock on which it was declared, the basis of the new stock is figured differently. Divide the adjusted basis of the old stock between the old and the new stock in the ratio of the fair market value of each lot of stock to the total fair market value of both lots on the date of distribution of the new stock.
Example.
You bought a share of common stock for $100. Later, the corporation distributed a share of preferred stock for each share of common stock held. At the date of distribution, your common stock had a fair market value of $150 and the preferred stock had a fair market value of $50. You figure the basis of the old and new stock by dividing your $100 basis between them. The basis of your common stock is $75 (($150 ÷ $200) × $100), and the basis of the new preferred stock is $25 (($50 ÷ $200) × $100).
Stock bought at various times.
Figure the basis of stock dividends received on stock you bought at various times and at different prices by allocating to each lot of stock the share of the stock dividends due to it.
Taxable stock dividends.
If your stock dividend is taxable when you receive it, the basis of your new stock is its fair market value on the date of distribution. The basis of your old stock does not change.
Stock splits.
Figure the basis of stock splits in the same way as stock dividends if identical stock is distributed on the stock held.
Stock rights.
A stock right is a right to acquire a corporation's stock. It may be exercised, it may be sold if it has a market value, or it may expire. Stock rights are rarely taxable when you receive them. See Distributions of Stock and Stock Rights in chapter 1.
Taxable stock rights.
If you receive stock rights that are taxable, the basis of the rights is their fair market value at the time of distribution. The basis of the old stock does not change.
Nontaxable stock rights.
If you receive nontaxable stock rights and allow them to expire, they have no basis.
If you exercise or sell the nontaxable stock rights and if, at the time of distribution, the stock rights had a fair market value of 15% or more of the fair market value of the old stock, you must divide the adjusted basis of the old stock between the old stock and the stock rights. Use a ratio of the fair market value of each to the total fair market value of both at the time of distribution.
If the fair market value of the stock rights was less than 15%, their basis is zero. However, you can choose to divide the basis of the old stock between the old stock and the stock rights. To make the choice, attach a statement to your return for the year in which you received the rights, stating that you choose to divide the basis of the stock.
Basis of new stock.
If you exercise the stock rights, the basis of the new stock is its cost plus the basis of the stock rights exercised.
Example.
You own 100 shares of ABC Company stock, which cost you $22 per share. The ABC Company gave you 10 nontaxable stock rights that would allow you to buy 10 more shares at $26 per share. At the time the stock rights were distributed, the stock had a market value of $30, not including the stock rights. Each stock right had a market value of $3. The market value of the stock rights was less than 15% of the market value of the stock, but you chose to divide the basis of your stock between the stock and the rights. You figure the basis of the rights and the basis of the old stock as follows:
| 100 shares × $22 = $2,200, basis of old stock | |
| 100 shares × $30 = $3,000, market value of old stock | |
| 10 rights × $3 = $30, market value of rights | |
| ($3,000 ÷ $3,030) × $2,200 = $2,178.22, new basis of old stock | |
| ($30 ÷ $3,030) × $2,200 = $21.78, basis of rights |
If you sell the rights, the basis for figuring gain or loss is $2.18 ($21.78 ÷ 10) per right. If you exercise the rights, the basis of the stock you acquire is the price you pay ($26) plus the basis of the right exercised ($2.18), or $28.18 per share. The remaining basis of the old stock is $21.78 per share.
Investment property received in liquidation.
In general, if you receive investment property as a distribution in partial or complete liquidation of a corporation and if you recognize gain or loss when you acquire the property, your basis in the property is its fair market value at the time of the distribution.
S corporation stock.
You must increase your basis in stock of an S corporation by your pro rata share of the following items.
-
All income items of the S corporation, including tax-exempt income, that are separately stated and passed through to you as a shareholder.
-
The nonseparately stated income of the S corporation.
-
The amount of the deduction for depletion (other than oil and gas depletion) that is more than the basis of the property being depleted.
You must decrease your basis in stock of an S corporation by your pro rata share of the following items.
-
Distributions by the S corporation that were not included in your income.
-
All loss and deduction items of the S corporation that are separately stated and passed through to you.
-
Any nonseparately stated loss of the S corporation.
-
Any expense of the S corporation that is not deductible in figuring its taxable income and not properly chargeable to a capital account.
-
The amount of your deduction for depletion of oil and gas wells to the extent the deduction is not more than your share of the adjusted basis of the wells.
Qualified small business stock.
If you bought this stock as replacement property for other qualified small business stock you sold at a gain, you must reduce the basis of this replacement stock by the amount of any postponed gain on the earlier sale. See Gains on Qualified Small Business Stock, later.
Short sales.
If you cannot deduct payments you make to a lender in lieu of dividends on stock used in a short sale, the amount you pay to the lender is a capital expense, and you must add it to the basis of the stock used to close the short sale.
See Payments in lieu of dividends, later, for information about deducting payments in lieu of dividends.
Premiums on bonds.
If you buy a bond at a premium, the premium is treated as part of your basis in the bond. If you choose to amortize the premium paid on a taxable bond, you must reduce the basis of the bond by the amortized part of the premium each year over the life of the bond.
For a taxable bond acquired at a premium that is a covered security, unless you instruct your broker that you do not want to amortize the premium, your broker will report income on the bond and your basis in the bond by amortizing the premium. Your broker may report the amount of premium amortization for a tax year separately from the amount of gross interest income in boxes 11 and 12 of Form 1099-INT or box 10 of Form 1099-OID, or may report net interest in boxes 1 and 3 of Form 1099-INT or box 2 of Form 1099-OID.
Although you cannot deduct the premium on a tax-exempt bond, you must amortize it to determine your adjusted basis in the bond. You must reduce the basis of the bond by the premium you amortized for the period you held the bond. For a tax-exempt covered security acquired at a premium, box 13 of Form 1099-INT or box 10 of Form 1099-OID shows the amount of bond premium amortization allocable to the interest paid during the tax year. If a net amount of interest appears in box 8 or 9 of Form 1099-INT, whichever is applicable, box 13 of Form 1099-INT should be blank. If a net amount of interest appears in box 2 of Form 1099-OID, box 10 of Form 1099-OID should be blank.
See Bond Premium Amortization in chapter 3 for more information.
Market discount on bonds.
If you include market discount on a bond in income currently, increase the basis of your bond by the amount of market discount you include in your income. See Market Discount Bonds in chapter 1 for more information.
Bonds purchased at par value.
A bond purchased at par value (face amount) has no premium or discount. When you sell or otherwise dispose of the bond, you figure the gain or loss by comparing the bond proceeds to the purchase price of the bond.
Example.
You purchased a bond several years ago for its par value of $10,000. You sold the bond this year for $10,100. You have a gain of $100. However, if you had sold the bond for $9,900, you would have a loss of $100.
Acquisition discount on short-term obligations.
If you include acquisition discount on a short-term obligation in your income currently, increase the basis of the obligation by the amount of acquisition discount you include in your income. See Discount on Short-Term Obligations in chapter 1 for more information.
Original issue discount (OID) on debt instruments.
Increase the basis of a debt instrument by the OID you include in your income. See Original Issue Discount (OID) in chapter 1.
If your debt instrument is a covered security, your broker will report a basis amount that is adjusted for OID included in income.
Discounted tax-exempt obligations.
OID on tax-exempt obligations is generally not taxable. However, when you dispose of a tax-exempt obligation issued after September 3, 1982, that you acquired after March 1, 1984, you must accrue OID on the obligation to determine its adjusted basis. The accrued OID is added to the basis of the obligation to determine your gain or loss. If your tax-exempt obligation is a covered security, your broker will report a basis amount that is adjusted for tax-exempt OID.
For information on determining OID on a long-term obligation, see Debt Instruments Issued After July 1, 1982, and Before 1985 or Debt Instruments Issued After 1984, whichever applies, in Pub. 1212, Guide to Original Issue Discount (OID) Instruments, under Figuring OID on Long-Term Debt Instruments.
If the tax-exempt obligation has a maturity of 1 year or less, accrue OID under the rules for acquisition discount on short-term obligations. See Discount on Short-Term Obligations in chapter 1.
Stripped tax-exempt obligation.
If you acquired a stripped tax-exempt bond or coupon after October 22, 1986, you must accrue OID on it to determine its adjusted basis when you dispose of it. For stripped tax-exempt bonds or coupons acquired after June 10, 1987, part of this OID may be taxable. You accrue the OID on these obligations in the manner described in chapter 1 under Stripped Bonds and Coupons.
Increase your basis in the stripped tax-exempt bond or coupon by the taxable and nontaxable accrued OID. Also increase your basis by the interest that accrued (but was not paid and was not previously reflected in your basis) before the date you sold the bond or coupon. In addition, for bonds acquired after June 10, 1987, add to your basis any accrued market discount not previously reflected in basis.
Using the guidance
Keep the documents that establish the dates, amounts, and circumstances described above. References to other chapters, forms, worksheets, or earlier and later sections refer to the linked IRS publication. Check the full publication and its updates before relying on a rule for a different tax year or a situation not addressed here.
Sources and further reading
- Publication 550 (2025), Investment Income and Expenses: Sales and Trades of Investment Property — Basis of Investment Property — Stocks and Bonds — Internal Revenue Service; 2025 edition.
The cited U.S. government text is in the public domain. Source accessed October 28, 2026. Fynoptic has organized this material for educational use and is independent of, and not endorsed by, the IRS.