Heads Up: The Fed continues to raise rates — up 3% this year — making credit card debt even costlier.
Pay it off today with a low fixed-rate personal loan. View your rate —>

What Is Cost Basis?

October 29, 2020 · 6 minute read

We’re here to help! First and foremost, SoFi Learn strives to be a beneficial resource to you as you navigate your financial journey. Read more We develop content that covers a variety of financial topics. Sometimes, that content may include information about products, features, or services that SoFi does not provide. We aim to break down complicated concepts, loop you in on the latest trends, and keep you up-to-date on the stuff you can use to help get your money right. Read less

What Is Cost Basis?

It’s common for people to avoid thinking about taxes until filing season is upon them. Unfortunately, this can lead to missed opportunities to reduce tax payments. Planning ahead and understanding tax rules is useful for investors to optimize their finances year-round.

Cost Basis Defined

Cost basis, also referred to as tax basis, is the value of an asset that is used for tax purposes when calculating gains or losses after a sale. This is generally the price that the asset was purchased at, adjusted for any dividends, mergers, stock splits, and return of capital distributions.

When an asset is sold, capital gains are the amount that the asset rose in value since it was purchased. Capital losses are the amount that an asset decreased in value between purchase and sale. Investors pay taxes on capital gains, and can sometimes offset the amount they pay in capital gains tax with capital losses.

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.

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, the cost basis stays the same as it was when the original investor bought them.

If the shares have decreased in value from the purchasing price at the time they are gifted, the cost basis is the new, lower price.

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.

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. If, for example, investors are following the dollar cost averaging investment method, 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 will owe. In order 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 above, several factors can affect cost basis. These include changes to company structures, such as stock splits and mergers, and personal investment decisions such as wash sales.

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. The loss gets added to the cost basis of the asset.

Stock Splits

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 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, and 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.

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 = $1010

If that stock paid out a $1 dividend each year, this would change the cost basis. For example, if $1 was paid out each year for six years, the cost basis would be calculated as follows: $1010 + (100 x $1 x 6) = $1610

First In, First Out Method (FIFO)

Using this 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 in fact have decreased in value.

If someone can’t label which shares were sold, the IRS defaults to the FIFO method. That is 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 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 that 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, thanks to 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 are sold first.

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.

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.

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 to help at any time.

Get started investing today.

SoFi Invest®
The information provided is not meant to provide investment or financial advice. Investment decisions should be based on an individual’s specific financial needs, goals and risk profile. SoFi can’t guarantee future financial performance. Advisory services offered through SoFi Wealth, LLC. SoFi Securities, LLC, member FINRA / SIPC . The umbrella term “SoFi Invest” refers to the three 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.

Automated Investing—The Automated Investing platform is owned by SoFi Wealth LLC, an SEC Registered Investment Advisor (“Sofi Wealth“). Brokerage services are provided to SoFi Wealth LLC by SoFi Securities LLC, an affiliated SEC registered broker dealer and member FINRA/SIPC, (“SoFi Securities”).
Active Investing—The Active Investing platform is owned by SoFi Securities LLC. Clearing and custody of all securities are provided by APEX Clearing Corporation.
For additional disclosures related to the SoFi Invest platforms described above, please visit https://www.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 to sell, solicitation to buy or a pre-qualification of any loan product offered by SoFi Lending Corp and/or its affiliates.


All your finances.
All in one app.

SoFi QR code, Download now, scan this with your phone’s camera

All your finances.
All in one app.

App Store rating

SoFi iOS App, Download on the App Store
SoFi Android App, Get it on Google Play

TLS 1.2 Encrypted
Equal Housing Lender