How to Calculate Gain and Loss on a Stock (2024)

What Are Stock Gains and Losses?

Gains are an increase in an asset's market value from its purchase price, while losses are a decrease in market value from its purchase price. There are two types of gains and losses: realized and unrealized. Unrealized gains and losses occur while you still own the asset. They are realized (brought into reality) when you sell the investment, resulting in an actual gain or loss of capital.

Gains occur whenever an asset's current price is higher than the price at which it was originally purchased. So, if you bought a share of Amazon (AMZN) stock on Sept. 3, 2013, at $13.23 and held it until May 11, 2020, you would have experienced an unrealized gain, as the stock closed at $120.45.

When you incur a loss, it means the current value of an asset or investment is lower than the price at which it was originally purchased. So, if you bought a single share of AT&T (T) stock on May 10, 2021, for $32.63 and sold it at $22.17 on Dec. 15, 2021, you'd have a realized loss.

Key Takeaways

  • To calculate your profit or loss, subtract the current price from the original price, also called the "cost basis."
  • The percentage change takes the result from above, divides it by the original purchase price, and multiplies that by 100.
  • A stock profit may not mean much unless you know how much you need to invest to make that amount of money.
  • Many websites calculate gains or losses, or you can set up a spreadsheet to do it for you.

Formula for Gains and Losses

To find the netgainorloss experienced for any stocks you hold, determine the difference between the total price you paid for them and the amount you received when you sold them. The result of the loss or gain calculation will be a percentage.

You calculate gains and losses using the price you paid—including all fees, commissions, and other expenses—and its market value when you sell it. This total price, for the purpose of this example, can be considered the original purchase price.

To calculate your gain or loss, subtract theoriginal purchase pricefrom thesale priceand divide the difference by the purchase priceof the stock.Multiply that figure by 100 to get the percentage change.

Net Gain or Net Loss = [ (Current Price - Original Purchase Price) ÷ Original Purchase Price ] x 100

Calculating Gains and Losses

To calculate your gains or losses, fill in the formula with your information. For simplicity, the calculation below excludes other costs and profit elements, such as dividends received, brokerage fees, and income taxes.

Using the previous Amazon figures:

  • Purchase price: $288.80
  • Sale price: $2,409.78
  • ($2,409.78 - $288.80) ÷ $288.80 = 7.344
  • 7.344 x 100 = 734.4%

You'd have realized a gain of 734.4% for a single Amazon share.

The AT&T stock figures:

  • Purchase price: $32.63
  • Sale price: $22.17
  • ($22.17 - $32.63) ÷ $32.63 = -.3205
  • -.3205 x 100 = -32%

You'd have a loss of 32% for a single AT&T share.

Gains and losses are categorized by the Internal Revenue Service (IRS) as long-term and short-term gains and losses. Long-term gains are realized after holding assets for more than a year while those deemed short-term are realized after being held for less than 12 months.

Dollar Value Profit or Loss

Some investors only use the dollar value of their returns to gauge profitability, but here is why percentage return figures are much more useful.

Imagine an investor buys 100 shares of Cory's Tequila Company at $10 per share for a total investment of$1,000. Suppose they sell those shares for $1700 ($17 per share) two months later, which means their profit for the trade is $700.

Suppose the investor also bought 1,000 shares in Rob's Sake Distillers at $10 apiece (for a total investment of $10,000) and later sold those shares at $10.70 each for a total of$10,700. The investor gained $700 in this investment as well.

Fees and other costs can eat away at your profits or add to your losses. Make sure you factor them in when you're considering selling any assets.

Calculating Investment Returns

The investment in Cory's Tequila Company was made at $10 per share and sold at $17 per share. The math for Cory's per share percent return is as follows:

  • ($17 – $10) ÷ $10 = .7
  • .7 x 100 = 70%

Thus, the percentage return on a $10 per share investment is 70%.

The math for Rob's is as follows:

  • ($10.70 - $10) ÷ $10 = .07
  • .07 x 100 = 7%

An investment in Rob's Sake Distillers would yield a 7% return per share.

So, when the investor compares the dollar value of their investments, it's clear that Cory's was a better investment because it took $10,000 to gain 7% at Rob's, but only $1,000 to gain 70% at Cory's:

Cory's

  • Outlay: $1,000

  • Returned: $1,700

  • Percent Gain: 70%

Rob's

  • Outlay: $10,000

  • Returned: $10,700

  • Percent Gain: 7%

Gains and losses are realized when you actually sell stock. Gains and losses are unrealized if the value changes, but you hold onto the stock within your portfolio.

Tools for Calculating Investment Returns

You can certainly use the formula above to calculate the returns of specific assets. However, there are several tools available to you that can help you tabulate your returns.

For starters, you may want to consider websites that do the calculations for you. The following are just a few of the sites you can visit to calculate the percentage gain or loss for the stocks you hold in your portfolio:

  • Gain & Loss Percentage Calculator from Babypips
  • Percentage Increase Calculator from OMNI Calculator
  • Percentage Decrease Calculator from OMNI Calculator
  • Percentage Increase Calculator from CalculatorSoup
  • Percentage Decrease Calculator from CalculatorSoup
  • Calculator from Percent Change Calculator

Calculating Profits and Losses in Spreadsheets

You can also use software to help you. For example, you can set up your own percentage change calculator using a spreadsheet. Begin by labeling the individual cells in the first columns as follows:

  • A1: Final Price
  • B1: Purchase Price
  • C1: Percentage Change

Input your purchase and final prices into the cells in the following rows:

  • A2: Final Price
  • B2: Purchase Price

Click on the cell for C2 and type in =(A2-B2)/B2*100. Cell C2 should automatically populate with your percentage change. So, if you use the example of Cory's Tequila Company with an initial investment of $1,000 and the sale netting $1,700, we get a percentage change of 70%.

Keep in mind that you can drag the formula down in Excel to carry it down into further cells.

How Do You Calculate Profit on Stock?

If you want to calculate the profit on a stock, you'll need the total amount of money you used to purchase your stock and the total value of your shares at the current price. You'll also need to know any fees associated with your transactions. So, if you bought 10 shares of Company X at $10 each and sold them for $20 each and incurred fees of $10, you stand to walk away with a profit of $90. Put simply, $200- $100- $10 = $90. Remember that this is just the dollar value and not the percentage change.

How Can I Calculate Long-Term Gain or Loss on Stock?

Long-term gains or losses are realized any time you sell a stock that you've held for more than a year. In order to figure out the gain or loss, you need your purchase and sale price for the stock. Subtract the purchase price from the sale price. A positive result means you have a capital gain while a negative result means you have a loss. Your capital gains tax rate depends on several factors, including your income and filing status.

How Do You Calculate Gain or Loss Percentage on Stock With a Calculator?

You'll need the original purchase price and the current value of your stock in order to make the calculation. Subtract the total purchase price from the current price of the stock then divide that by the original purchase price and multiply that figure by 100. This gives you the total percentage change.

The Bottom Line

Calculating your profit or loss on your stock holdings is a fairly straightforward procedure. It's as simple as calculating the percentage change between a beginning value and an ending value. When calculating your profit or loss, make sure you look at the percentage return as opposed to the dollar value.

How to Calculate Gain and Loss on a Stock (2024)

FAQs

How to Calculate Gain and Loss on a Stock? ›

Take the selling price and subtract the initial purchase price. The result is the gain or loss. Take the gain or loss from the investment and divide it by the original amount or purchase price of the investment. Finally, multiply the result by 100 to arrive at the percentage change in the investment.

How do I calculate my gains and losses when I sell a stock? ›

Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference. ○ If you sold your assets for more than you paid, you have a capital gain. ○ If you sold your assets for less than you paid, you have a capital loss.

What is the formula for gain and loss? ›

Profit = Selling price (S.P.) - Cost price (C.P.) Loss = Cost price (C.P.) - Selling price (S.P.)

How do you calculate gain or loss on shares? ›

To calculate your gain or loss, subtract the original purchase price from the sale price and divide the difference by the purchase price of the stock. Multiply that figure by 100 to get the percentage change.

How do you calculate profit gain or loss? ›

The profit or gain is equal to the selling price minus the cost price. Loss is equal to the cost price minus the selling price.

How much stock loss can you write off? ›

No capital gains? Your claimed capital losses will come off your taxable income, reducing your tax bill. Your maximum net capital loss in any tax year is $3,000. The IRS limits your net loss to $3,000 (for individuals and married filing jointly) or $1,500 (for married filing separately).

How do you calculate stock profit and loss? ›

If you bought 100 shares of the stock and realized a gain of $5 per share, that would be $500 in profit (not including any trading fees or commissions). If the stock price has dropped since you bought it, you would subtract the current price from the original price, to arrive at the amount of your loss.

How to calculate gain or loss on sale? ›

Take the selling price and subtract the initial purchase price. The result is the gain or loss.

How do you calculate capital gains or losses? ›

The calculation for a capital gain or loss is straightforward: it starts with the selling price of your capital asset minus its cost basis (what you originally paid for it). If the number is positive (in other words, you made money on the sale), that's your capital gain.

What is the formula for profit and loss? ›

In the case of profit, the selling price is always more than the cost price. Profit = Selling Price - Cost Price. Similarly, in the case of loss, the cost price is more than the selling price. Loss = Cost Price - Selling Price.

How do you track gains and losses on stocks? ›

Recording the gains and losses of your stock portfolio seems pretty basic. You can simply list your cost of the security in your portfolio. When you sell it, record the price you received. The difference is your gain or loss on that stock.

How do you calculate gain or loss basis? ›

Sale Price – Cost Basis = Reportable Gain or Loss

For regular stock bought on the open market, the cost basis is simply the purchase price. With stock plans, adjustments may be needed to determine the correct cost basis amount.

How do I calculate taxes when I sell stock? ›

How to Calculate Long-Term Capital Gains Tax
  1. Determine your basis. The basis is generally the purchase price plus any commissions or fees you paid. ...
  2. Determine your realized amount. ...
  3. Subtract the basis (what you paid) from the realized amount (what you sold it for) to determine the difference. ...
  4. Determine your tax.

What is the formula for calculating the stock price? ›

We can calculate the stock price by simply dividing the market cap by the number of shares outstanding. Let's now think about why we can calculate it this way. The Market Cap (aka Market Capitalization) reflects the market value of the equity of the company.

What is the formula to compute for profit or gains? ›

What is the Formula to Calculate the Profit? The basic formula that is used to calculate the profit in a business or a financial transaction, is: Profit = Selling Price - Cost Price. Here, Cost Price (CP) of a product is the cost at which it was originally bought.

How to calculate when to sell a stock? ›

When buying a stock, estimate a percentage you plan to sell at. For example, you may sell a position when it profits 20% to 25%. Once you reach this number, sell some or all of the position, or reevaluate your goals. On the other end, a stop loss helps minimize losses in a sharp downturn.

How to calculate profit or loss on sale of shares for income tax? ›

To calculate capital gains, subtract the cost of acquisition and sale expenditures from the sale price. If capital gains exceed Rs. 1 lakh in a fiscal year, apply a 10% tax rate (plus surcharge and cess) on the excess profits. There is no tax duty on gains that are less than Rs. 1 lakh.

How do you calculate gain or loss on sale? ›

Take the selling price and subtract the initial purchase price. The result is the gain or loss. Take the gain or loss from the investment and divide it by the original amount or purchase price of the investment.

Top Articles
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 5648

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.