Cost basis is defined as the amount you paid to purchase an asset or investment, or its original value, plus any commissions or fees involved. This is useful information to have for tax purposes, since it’s the starting point for determining capital gains and losses after a sale.
Knowing how to calculate cost basis can help investors determine how much they may pay in capital gains taxes from a sale, and thus inform their strategy for selling. There are a number of different accounting methods for figuring out cost basis, each with distinct advantages and disadvantages.
Note that the information in this article isn’t meant as investment or tax advice. It is meant to educate investors about tools and terminology used for trading and taxation purposes. For financial advice and personal portfolio questions, reach out to a tax advisor.
Cost Basis Defined
Cost basis, also referred to as tax basis, is the value of an asset that’s used for tax purposes when calculating gains or losses after a sale. This is generally the price at which the asset was purchased, adjusted for any dividends, mergers, stock splits, and return of capital distributions.
Cost basis also is adjusted for any broker fees, commissions, wash sales, and corporate action events that affect the purchase. It is either calculated as the price per share or unit of the investment, or as the total amount paid for a particular asset trade.
When an asset is sold, capital gains are the amount by which the asset rose in value since its purchase. Capital losses are the amount that an asset decreased in value between purchase and sale. Investors pay taxes on capital gains, and they can sometimes offset the amount paid in capital gains tax with capital losses.
If someone inherits an asset rather than buying it, this is called a step-up, and the cost basis is calculated as the value of the investment at the time it was inherited. If an investor is gifted shares, on the other hand, the cost basis stays the same as it was when the original investor bought them. Meanwhile, if the shares have decreased in value from the purchase price at the time they’re gifted, the cost basis is the new, lower price.
Why Is Cost Basis Important?
It’s important for investors to understand how cost basis works when planning for and filing taxes. When traders know how much they paid for assets, they can calculate how much they will pay in capital gains taxes when they sell those assets, and decide when to sell each asset. Cost basis must be reported to the IRS when filing taxes.
Cost basis can be complicated to calculate if a trader bought and sold shares on different dates, at different prices. For example, if investors are following the dollar cost averaging investment method, then calculating their cost basis can be complex.
If traders reinvest money they earn from capital gains distributions and dividends, this changes the cost basis of their assets, and in turn, changes the amount of capital gains taxes they’ll owe. To lower capital gains taxes, investors must report these reinvestments. Otherwise, they pay taxes based on the original price, which may be significantly lower than later reinvestment prices.
There are different strategies for timing the sale of assets to time capital gains tax payments.
Factors That Affect Cost Basis
As mentioned, several factors can affect cost basis. These include changes to company structures, such as stock splits and mergers, and personal investment decisions like wash sales.
A wash sale happens when an investor sells an asset at a loss, then purchases a similar asset within 61 days of the sale (30 days before or after the sale). The loss is not included on that year’s tax report. Rather, the loss gets added to the cost basis of the asset.
Sometimes companies split their shares, which means if an investor originally held one share, after the split they own two. Stock splits affect cost basis but not the original or current value of the investment. If an investor bought one share for $10, and then the stock split so they held two shares, the cost basis would be $5 for each share.
If a company is acquired by another company, the acquiring company issues stock or cash to shareholders. This will either need to be reported as income in the case of cash, or it will change the cost basis in the case of shares. Information is provided to investors from the company to help them calculate the new cost basis.
If a company declares bankruptcy, the shares may still be available for trade and retain their original cost basis. However, there are some situations in which the cost basis gets more complicated. If the company files for Chapter 7 bankruptcy and ceases to exist, the shares become worthless.
How Do You Calculate Cost Basis?
How cost basis is calculated can make a significant difference in capital gains taxes. Different accounting methods are used to sell off shares and calculate the cost basis. Each has advantages and disadvantages.
As an example, let’s assume a trader bought 100 shares of Company X stock for $10 per share and paid a $10 commission for the purchase. The cost basis would be (100 x $10) + $10 = $1,010.
If that stock paid out a $1 dividend each year, this would change the cost basis. For instance, if $1 was paid out each year for six years, the cost basis would be calculated as follows: $1,010 + (100 x $1 x 6) = $1,610.
First In, First Out Method (FIFO)
Using the First In, First Out (FIFO) accounting method, individuals or tax preparers assume that the first assets purchased were the first ones sold.
For example, if a trader purchased 100 shares of a stock each year for five years, they would have 500 shares. If they then sell 100 shares, the FIFO method assumes that the shares sold were the ones purchased in the first year. This would set the cost basis at the price paid that year.
Often, the stocks purchased first were bought at the lowest price, so when those are sold they have the largest capital gain. However, there is no guarantee that stocks will go up in value over time, so those that have been held the longest may have decreased in value.
If someone can’t label which shares were sold, the IRS defaults to the FIFO method. That’s another reason it’s important for investors to keep track of their purchases to ensure they have more control over their taxes.
One reason the FIFO method is beneficial is that if investors have held an asset for longer than one year, their capital gains tax rate is lower when they sell it.
Last In, First Out Method (LIFO)
The Last In, First Out (LIFO) method calculates cost basis by saying that the most recent shares purchased are the ones that are being sold first. This method is not used internationally and is only allowed in the United States.
Specific Identification Method
Using the Specific Identification Method, investors select which specific shares of stocks they purchased go toward the cost basis calculation when they sell. They might select shares they’ve owned the longest, or shares they recently purchased.
To use this method, investors must keep track of each asset purchase they make and the price at which they buy assets. They then tell their brokerage which shares they want to sell.
Average Cost Method
Using this method, investors add up all the different prices they paid for assets, then divide by the number of shares to come with their cost basis. This may not be the most effective for optimizing taxes, but it is commonly used by both investors and brokerage firms, due to its convenience.
High Cost Method
With the High Cost Method, the shares that were purchased at the highest price are sold first, regardless of the date of purchase. This method lets investors pay the lowest capital gains, because there is less difference between their purchase and sale price, and they may even have a loss from the investment.
Low Cost Method
With the Low Cost Method, the shares purchased at the lowest price, or the cheapest shares, are sold first. This method might be selected if an investor wants to realize a capital gain on their investment.
Keeping Track of Your Portfolio
If you’re just starting to build a portfolio of investments, it can be complicated to figure out your cost basis and capital gains and losses for each asset. Using a straightforward tool that shows all of your investments in one place can be a huge help. By knowing the cost basis of your investments, you can better know how much they’ll pay in capital gains taxes when they sell those assets, and then make a decision on when to sell ach asset.
SoFi Invest® offers a suite of investing tools with an easy-to-use app. You can see all of your portfolio information, keep tabs on your favorite companies, and set personal financial goals. You’ll be able to see when you bought shares of a stock and the cost basis for those purchases.
Plus, SoFi Invest® lets you do both active and automated investing, so you can either hand-select each stock you want to buy or choose from preselected groups of stocks. If you have questions about personal goals or building a portfolio, SoFi has a team of professional financial planners available via appointment.
SoFi Invest refers to the two investment and trading platforms operated by Social Finance, Inc. and its affiliates (described below). Individual customer accounts may be subject to the terms applicable to one or more of the platforms below.
1) Automated Investing and advisory services are provided by SoFi Wealth LLC, an SEC-registered investment adviser (“SoFi Wealth“). Brokerage services are provided to SoFi Wealth LLC by SoFi Securities LLC.
2) Active Investing and brokerage services are provided by SoFi Securities LLC, Member FINRA(www.finra.org)/SIPC(www.sipc.org). Clearing and custody of all securities are provided by APEX Clearing Corporation.
For additional disclosures related to the SoFi Invest platforms described above, including state licensure of SoFi Digital Assets, LLC, please visit SoFi.com/legal.
Neither the Investment Advisor Representatives of SoFi Wealth, nor the Registered Representatives of SoFi Securities are compensated for the sale of any product or service sold through any SoFi Invest platform. Information related to lending products contained herein should not be construed as an offer or pre-qualification for any loan product offered by SoFi Bank, N.A.
Financial Tips & Strategies: The tips provided on this website are of a general nature and do not take into account your specific objectives, financial situation, and needs. You should always consider their appropriateness given your own circumstances.
Tax Information: This article provides general background information only and is not intended to serve as legal or tax advice or as a substitute for legal counsel. You should consult your own attorney and/or tax advisor if you have a question requiring legal or tax advice.
Advisory services are offered through SoFi Wealth LLC, an SEC-registered investment adviser. Information about SoFi Wealth’s advisory operations, services, and fees is set forth in SoFi Wealth’s current Form ADV Part 2 (Brochure), a copy of which is available upon request and at adviserinfo.sec.gov .