Cost Basis Calculator Stock

Investing in the stock market can be a lucrative endeavor, but it’s essential to keep track of your financial details, such as the cost basis of your stock holdings. The Cost Basis Calculator for stocks is a handy tool that helps investors determine the total cost of their stock purchases, including any associated commissions.


The formula for calculating the cost basis of a stock investment is relatively straightforward:

Cost Basis = (Purchase Price per Share × Number of Shares) + Commission

  • Purchase Price per Share: The price at which you bought each share of the stock.
  • Number of Shares: The total number of shares you acquired.
  • Commission: Any fees or commissions paid during the purchase.

How to Use

Using the Cost Basis Calculator is simple:

  1. Enter the purchase price per share in the “Purchase Price” field.
  2. Specify the number of shares purchased in the “Number of Shares” field.
  3. If applicable, input any commission paid during the purchase in the “Commission” field.
  4. Click the “Calculate” button.
  5. The “Cost Basis” field will display the total cost basis of your stock investment.


Let’s say you bought 100 shares of XYZ Corporation at $50 per share and paid a $10 commission. To calculate the cost basis:

  • Purchase Price per Share = $50
  • Number of Shares = 100
  • Commission = $10

Using the calculator, the cost basis would be calculated as follows:

Cost Basis = ($50 × 100) + $10 = $5,010

So, your cost basis for the investment in XYZ Corporation would be $5,010.


Q1: What is a cost basis for stocks? A1: The cost basis represents the total amount of money you’ve invested in a stock, including the purchase price and any associated fees or commissions.

Q2: Why is it important to calculate the cost basis of my stocks? A2: Knowing the cost basis is crucial for determining capital gains or losses when you sell your stocks for tax purposes.

Q3: Is the cost basis the same as the current market value of my stocks? A3: No, the cost basis represents what you paid for your stocks, while the market value is their current worth.

Q4: Do I need to include dividends in the cost basis calculation? A4: No, dividends are not part of the cost basis calculation.

Q5: Can I use this calculator for other investments, such as bonds or mutual funds? A5: This calculator is designed specifically for stocks; it may not be accurate for other types of investments.

Q6: What if I received stock as a gift or inheritance? How do I calculate the cost basis? A6: The cost basis for gifted or inherited stocks may have different rules; consult with a tax professional for guidance.

Q7: Can I use this calculator for tax purposes? A7: While this calculator can help you determine your cost basis, always consult with a tax professional for accurate tax reporting.

Q8: Can I change the currency in this calculator? A8: This calculator uses the currency format based on your device’s regional settings.

Q9: Can I calculate the cost basis of multiple stock purchases? A9: Yes, you can use this calculator for each stock purchase separately and then sum up the results.

Q10: Is this calculator suitable for day traders? A10: This calculator is designed for long-term investors. Day traders may have different cost basis calculations due to frequent trades.


The Cost Basis Calculator for stocks is a valuable tool for investors to keep track of their investments and ensure accurate tax reporting. By knowing your cost basis, you can make informed decisions about when to buy or sell stocks and manage your capital gains effectively. Remember that while this calculator provides a helpful estimate, it’s essential to consult with a tax professional for precise tax calculations and reporting. Happy investing!

Leave a Comment