Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

A Comprehensive Guide to Cost Basis: Methods and Examples

Understanding Cost Basis: A Comprehensive Guide

When you sell an investment or a home, you may be subject to capital gains taxes on the transaction. Cost basis is the original price you paid for the asset, and it’s a key factor in determining your tax liabilities. Understanding how cost basis works for an investment or a home can help you get a better idea of what your tax liability might be when you’re ready to sell.

What Is Cost Basis?

The cost basis on an asset is the amount you paid for your investment. With a stock, for instance, that would include the price per share at the time of purchase, plus brokerage fees and other costs. With mutual funds, it also includes any upfront load fees. With a home, your cost basis also includes some ongoing expenses you’ve incurred, such as major home improvements and casualty and theft losses.

When you sell an investment or a home, you may be subject to capital gains tax on the transaction. When filing your tax return, you’ll use the sale proceeds and cost basis to determine your gain or loss, which, in turn, can be used to calculate your capital gains tax bill.

Cost Basis vs. Market Value

While cost basis is the original price you paid for an investment, market value is the current price at which you could sell it. When considering a trade or a home sale, looking at your asset’s current market value can help you estimate what your potential tax consequences might be if you decide to go through with the transaction.

How to Calculate Cost Basis

The process for calculating cost basis is different for investment securities and real estate. Here’s a quick summary of how to get started.

Cost Basis for Investments

With your investment portfolio, there are a few different ways you can calculate the cost basis of your assets:

  • First-in, first-out (FIFO): The default with most brokerage firms—unless you’re selling your stake in a mutual fund—the FIFO method assumes that if you sell a portion of your position in a stock or other security, it’s the oldest shares that go first. That said, if your first shares had a lower price than subsequent trades, that’ll result in a higher gain and, therefore, a bigger tax bill.
  • Specific identification: With this option, you can choose which shares you want to sell based on their cost basis. By picking shares with a higher purchase price, you can minimize your realized gain on the sale and reduce your tax liability. While FIFO is the default in many cases, you can specify with your broker that you want to use the specific identification method instead.
  • Average cost, single category: If you own shares in a mutual fund, this method is the default. You’ll calculate your cost basis by averaging the cost of all the shares you have and then multiplying it by the number of shares you’re selling.

Cost Basis for a Home

To calculate the cost basis for real estate, you’ll start by adding common costs like:

  • The original purchase price of the home
  • Eligible settlement fees and closing costs
  • Major home improvements
  • Costs to repair damage to the home and property

Then, you’ll subtract certain expenses, such as:

  • Allowable depreciation for business or rental purposes
  • Casualty losses
  • Insurance payments for casualty losses
  • Energy credits and subsidies

Keep in mind, though, that the IRS provides an exclusion for capital gains tax for taxpayers who resided in the home for at least two out of the previous five years. More specifically, you may be able to exclude up to $250,000 in capital gains (or $500,000 if you’re married and filing jointly).

Examples of Cost Basis

Depending on the type of asset you own, here are some examples of how you might calculate the cost basis.

FIFO Method vs. Specific Identification Method

Let’s say you’ve purchased shares of ABC company in the following intervals:

  • 10 shares at $10 per share
  • 15 shares at $12 per share
  • Five shares at $14 per share

If the price has jumped to $20 and you want to sell five shares, you’d get $100 from the trade. Your cost basis for each share using the FIFO method would be $50—five shares multiplied by $10—resulting in a gain of $50.

With the specific identification method, you could instruct your brokerage firm to sell the five shares you bought at $14 per share, giving you a cost basis of $70 on the sale and a taxable gain of $30.

Average Cost, Single Category Method

Let’s say you’ve purchased 100 shares of a mutual fund over the course of several months of investments, with an average cost per share of $65.

If you were to sell 20 shares at $75 per share for $1,500, your cost basis would be $1,300—the average cost of $65 multiplied by 20 shares—giving you a taxable gain of $200.

Real Estate Method

Let’s say you bought a home for $200,000, and several years later, sold it for $300,000. Over the years, you put roughly $20,000 into the home for improvements and repairs. But you also received $5,000 in insurance payouts for losses.

To calculate your cost basis, you’d add the $200,000 purchase price and $20,000 in additional eligible costs, then subtract $5,000, for a total of $215,000. Your resulting gain would be $85,000, well below the exclusion amount if you lived in the home for at least two out of the past five years.

Frequently Asked Questions

Why Is Cost Basis Important?

Cost basis is crucial because it helps determine your capital gains or losses when you sell an asset. This, in turn, affects your tax liability. Understanding your cost basis can help you make more informed decisions about selling investments or property.

How Do I Determine the Cost Basis of Gifted Stock?

Determining the cost basis of gifted stock can be a bit more complex. Generally, if the stock was a gift, your cost basis is the same as the donor’s cost basis. However, if the stock’s market value was lower than the donor’s cost basis at the time of the gift, special rules may apply. It’s best to consult with a tax professional for specific guidance.

What Can Be Included in the Cost Basis of Property?

For property, the cost basis includes the original purchase price, eligible settlement fees, closing costs, and major home improvements. It can also include costs to repair damage to the home and property. However, certain expenses like allowable depreciation for business or rental purposes, casualty losses, and insurance payments for casualty losses must be subtracted.

The Bottom Line

Managing taxes on an investment portfolio or a home sale can be complicated, but understanding how to calculate your cost basis and gain can help you better estimate what your tax bill might look like. If you’re overwhelmed by the prospect of calculating cost basis on your own, consult with a tax professional who can provide personalized guidance for your situation.

For any mortgage service needs, O1ne Mortgage is here to help. Call us at 213-732-3074 to speak with one of our experienced loan officers. We are committed to providing you with the best service and helping you navigate the complexities of mortgage financing.