Cost basis is the value assigned to an asset for tax purposes at the time it is acquired. For a security bought in the market it is normally the price paid plus the costs of buying, such as a commission. When the asset is sold, the cost basis is subtracted from the sale proceeds to give the capital gain or capital loss.
The concept applies to shares, bonds, funds, property, digital assets and most other investments. It is central to capital gains tax, since a higher basis means a smaller taxable gain. This entry describes the general idea with reference to United States rules, which are administered by the Internal Revenue Service. Other countries apply the same principle with different details.
Calculation and worked example
For a simple purchase and sale the arithmetic is:
where the cost basis is:
Net proceeds are the sale price times the units sold, less selling costs. Suppose an investor buys 100 shares at 50 dollars each and pays a 10 dollar fee. The cost basis is dollars, or 50.10 dollars a share. The company later carries out a two-for-one stock split. The total basis is unchanged, but it is now spread over 200 shares at 25.05 dollars each.
The investor then sells 80 shares at 40 dollars and pays an 8 dollar fee. Net proceeds are dollars. The basis of the shares sold is dollars. The gain is dollars, and the remaining 120 shares keep a basis of 3,006 dollars.
Adjustments to basis
The starting figure often changes while the asset is held, giving what is called the adjusted basis.
- Reinvested distributions. Each purchase made through dividend reinvestment adds a new block of shares with its own basis. Leaving these out means paying tax twice on the same income.
- Return of capital. A distribution classed as a return of capital is not taxed when received but lowers the basis.
- Corporate events. Splits, mergers and spin-offs spread or reallocate basis across the new holdings, as described under corporate action.
- Wash sales. Under US rules, a loss on a security is disallowed if a substantially identical one is bought within 30 days before or after the sale. The disallowed loss is added to the basis of the replacement.
- Property. For real estate and business assets, improvements raise the basis and depreciation lowers it.
Choosing which units were sold
An investor who bought the same security at several prices holds several tax lots, and a partial sale requires a rule for deciding which lots have gone. In the United States the default for shares is first in, first out, which treats the oldest units as sold first. An investor may instead identify specific lots at the time of sale, for example the lots with the highest cost, to reduce the gain. Shares in a mutual fund may use the average cost of all units held.
The method affects the timing of tax and not the total gain over the life of the holding. It also interacts with the holding period: in the United States a gain on an asset held for more than one year is a long-term capital gain, generally taxed at lower rates than a short-term capital gain.
Inherited and gifted assets
Assets not acquired by purchase follow separate rules. Under US law, property received from a person who has died generally takes a basis equal to its fair market value at the date of death. This is often called a step-up in basis, and it means the gain built up during the deceased owner's life is not subject to income tax. Property received as a gift generally keeps the giver's basis, so the recipient takes on the unrealized gain. Special rules apply where a gifted asset has fallen in value.
Broker reporting
US law requires a brokerage to track the basis of securities and report it to both the customer and the tax authority when they are sold. The requirement was phased in from 2011 for shares and later extended to funds, bonds and options. Securities bought before the relevant date are non-covered, and the investor remains responsible for their records. When an account moves between firms, the basis information is passed on with the transfer.
Records can still be wrong or incomplete, especially after gifts, inheritances, transfers and wash sales across different accounts. The taxpayer is responsible for the figures on the return. Strategies such as direct indexing depend on accurate lot-level records, because they sell selected lots to realize losses.