Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Value Of Stock Calculator 
Stock Market Calculators

Value Of Stock Calculator 

Published onMay 5, 2026 Updated onOctober 24, 2026 4:37 am

Owning 100 shares means little until you price them. This calculator takes the number of shares, the current price, your purchase price and the annual dividend per share, and returns five figures in one pass: what the holding is worth now, what you put in, your gain or loss in dollars and percent, and the dividend income the position pays each year. It is a snapshot of one holding bought at one price, and the article below is explicit about what that snapshot leaves out.

Value of Stock Calculator
Shares and prices in, holding value, gain or loss and dividend income out
Current Portfolio Value:
Initial Investment:
Total Gain/Loss:
Percentage Change:
Annual Dividend Income:

Figures are shown exactly as the calculator formats them: two decimals, no thousands separators, and a leading + on a positive percentage change. The gain or loss is unrealised while you still hold the shares.

Quick Answer

100 shares bought at $40 and now trading at $50 are worth $5,000, against an initial investment of $4,000: a gain of $1,000, or +25.00%. At an annual dividend of $2.00 per share, the same holding also pays $200 a year in dividend income. Those five figures are pre-filled in the calculator above.

Key takeaways

  • Holding value is shares × current price. Everything else on the results panel is a comparison against what you paid.
  • The percentage change is the gain divided by your initial investment, so it depends on your purchase price, not on the stock alone. Two holders of the same stock can see different percentages.
  • Dividend income is reported separately and is not added into the gain. A holding can show a price loss and still have paid you income, or a price gain and have paid nothing.
  • The tool models one holding bought at one price, with no commissions, fees or taxes. The boundary section below says exactly what that excludes.
On this page
  • Quick Answer
  • How to use the Value of Stock Calculator
  • The five formulas behind the results panel
  • Worked example: 100 shares, $40 in, $50 now
  • Reading the result: unrealised gains, dividends and your cost basis
  • What this calculator does not do
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use the Value of Stock Calculator

Enter four numbers and click Calculate. The results panel stays hidden until you do.

  1. Number of shares: how many shares of the holding you own. Fractional shares count; enter 10.5 if that is what you hold.
  2. Current price per share: today’s quote for one share. This is the only input that changes on its own, so refresh it whenever you re-run the numbers.
  3. Purchase price per share: what you paid for one share. For holdings built up in several buys, use your average cost per share.
  4. Annual dividend per share: the full-year dividend for one share. Add up four quarterly payments if that is how the company pays. Blank is treated as $0.

Validation is strict and old-fashioned: if shares, current price or purchase price is blank, zero, negative or non-numeric, the calculator pops up the alert “Please enter valid values for shares and prices” and computes nothing. The dividend field is the exception. It is optional, so a blank or non-numeric dividend quietly becomes $0 rather than blocking the calculation. One quirk worth knowing: a negative dividend is not rejected either, because the code only converts blank and zero entries to $0, so a dividend of -$2.00 on 100 shares reports annual dividend income of $-200.00. Real dividends are never negative; treat that output as a sign the input was wrong, not as a number to use.

The five formulas behind the results panel

Every output is a single multiplication or subtraction. There is no compounding, no annualising and no adjustment hidden anywhere in the code.

Current value = Shares × Current Price
Initial investment = Shares × Purchase Price
Gain / loss = Current Value − Initial Investment
Percentage change = (Gain or loss ÷ Initial Investment) × 100
Annual dividend income = Shares × Annual Dividend per Share

The first formula is the same shares-times-price identity that defines a whole company’s market capitalisation, applied to your slice of it instead of all outstanding shares, a definition Nasdaq’s glossary states in exactly those terms. The percentage change divides by your initial investment, which is why it matches the stock price change calculator only when the purchase price in both tools is the same. Note what the gain formula does not contain: the dividend. Price return and income are kept in separate lines, the same split the stocks return calculator makes when it separates price movement from distributions.

Worked example: 100 shares, $40 in, $50 now

The pre-filled example is a single clean lot: 100 shares bought at $40.00, now at $50.00, paying $2.00 per share per year. Run it and the panel fills in exactly as below.

1. Value: 100 × $50 = $5,000.00→ 2. Invested: 100 × $40 = $4,000.00→ 3. Gain: $5,000 − $4,000 = $1,000.00→ 4. Percent: $1,000 ÷ $4,000 = +25.00%; dividends 100 × $2 = $200.00

Five more runs of the same calculator, covering a loss, a break-even, fractional shares and the formatting behaviour at large values:

Inputs (shares / current / purchase / dividend)Current valueGain / lossChangeDividend income
100 / $50.00 / $40.00 / $2.00 (worked example)$5000.00$1000.00+25.00%$200.00
100 / $30.00 / $40.00 / $2.00 (a loss that still pays)$3000.00$-1000.00-25.00%$200.00
250 / $40.00 / $40.00 / $0 (break-even)$10000.00$0.00+0.00%$0.00
10.5 / $100.00 / $90.00 / $0 (fractional shares)$1050.00$105.00+11.11%$0.00
1,000,000 / $250.75 / $200.00 / $3.00 (institutional size)$250750000.00$50750000.00+25.37%$3000000.00

Read the last row’s formatting carefully: the calculator prints $250750000.00 with no thousands separators, exactly as coded. The number is right; the presentation is plain. The break-even row shows a second formatting habit: a zero gain gets a leading plus sign, +0.00%, and the green colour, because the code treats any gain of zero or more as positive.

Reading the result: unrealised gains, dividends and your cost basis

The gain this calculator shows is unrealised for as long as you keep holding. It exists on paper, moves with every quote, and becomes a realised gain or loss only when you sell, which is also the point at which it becomes a tax event. The U.S. Securities and Exchange Commission’s investor education site makes the underlying risk plain: money invested in securities is not federally insured, and you can lose some or all of your principal. A +25.00% on this page is a measurement, not a promise and not cash.

Your purchase price does double duty. Inside this calculator it is just the comparison point for the gain. For tax reporting it is the start of your cost basis, and the Internal Revenue Service counts more in that basis than the bare share price: commissions belong in it, and shares bought through a dividend reinvestment plan carry a basis equal to their cost plus adjustments. That is why the percentage here will differ slightly from a tax-lot calculation for the same holding whenever commissions were paid. If your holding was built in several purchases, work out the blended price first with the cost per share calculator and enter that single average here.

Dividend income deserves its own line because it follows different rules from the price gain. Nasdaq’s dividend primer sets out the vocabulary investors actually meet: the dividend itself, the yield (annualised dividend divided by price), and the payout ratio (dividends as a share of earnings). This calculator reports the raw annual income, shares × dividend per share, and leaves yield arithmetic to you or to the dividends calculator. On the worked example, $200 of income on a $5,000 current value is a 4.00% yield at today’s price, and a 5.00% yield on the $4,000 you actually paid. Same holding, two honest yields, which is exactly why the tool reports dollars instead of picking one.

What this calculator does not do

Four exclusions matter, and pretending otherwise is how calculator pages mislead people:

  • No commissions or fees. The initial investment is shares × purchase price, nothing added. If you paid a $6.95 commission, your true initial outlay, and your IRS cost basis, is higher than the figure shown, and your real gain is lower by the same amount.
  • No taxes. Nothing here estimates capital gains tax, dividend tax or withholding. Realised gains are taxable in the year of sale; unrealised gains, the kind shown here, generally are not.
  • One purchase price only. There is no lot handling, no FIFO or specific-identification choice, and no adjustment for splits or return-of-capital distributions, all of which change a real basis over time.
  • No total return figure. The gain line excludes dividends and the dividend line is annual, while the gain may cover several years. Adding them together without matching the periods produces a number that looks precise and is not. The honest summary of a holding is the pair of figures, read together.

What competing calculators miss

Stock calculators split into camps, and the gaps are consistent:

  • Multi-trade position tools (stockcalculator.io): average cost, realised and unrealised profit, break-even and after-tax estimates across a trade list. Powerful, but heavy for the most common question, which is what one holding is worth right now, and the fee and tax layers rest on assumptions a casual user cannot check.
  • Fee-and-tax profit calculators (Calciflow, Bapital, Online-Calculator.info): gross versus net profit with commissions and capital gains tax built in. The net figure is only as good as the tax rate you type in, and most frame the second price as a sale price, so a holder who is not selling gets a hypothetical dressed as a result.
  • Three-mode value tools (Util Monster’s stock value calculator): total value, average price and shares-needed-for-a-target in one page. Genuinely flexible, but there is no dividend income line and no gain-versus-purchase comparison.
  • Averaging tools (stockcalculator.digital): weighted average entry and profit-target price levels for people adding to a position. A different job: they assume you are trading, not valuing.
  • The gap this page fills: the five core figures for one holding, value, invested, gain, percent and annual dividend income, with the unrealised status, the no-fees boundary and the formatting quirks stated on the page instead of buried.

Frequently asked questions

Multiply the number of shares by the current price per share. 100 shares at $50 are worth $5,000. This calculator then compares that value with your initial investment, shares multiplied by your purchase price, to produce the gain or loss in dollars and percent, plus your annual dividend income.

Unrealised, for as long as you still hold the shares. It is the difference between today’s value and what you paid, and it moves with the market price. It becomes a realised gain or loss only when you sell, which is when it generally becomes taxable. Nothing is owed on an unrealised gain.

Multiply the number of shares by the annual dividend per share. 100 shares paying $2.00 per share per year produce $200.00 of annual dividend income. Enter the full-year figure: if the company pays $0.50 quarterly, enter $2.00. A blank dividend field is treated as $0.

Because the calculator treats any gain of zero or more as positive. When the current price equals your purchase price, the gain is $0.00, the percentage change is printed with a leading plus sign as +0.00%, and both figures take the green colour used for gains. A loss, by contrast, prints with its minus sign and the red colour.

No. The initial investment is shares multiplied by purchase price, with nothing added for commissions or fees, and no tax is estimated on the gain or the dividends. Your real cost basis for tax purposes is higher if you paid commissions, since the IRS includes them in basis, so treat the gain shown here as the pre-fee, pre-tax figure.

Enter your average cost per share as the purchase price. The calculator accepts a single purchase price only, so blend your purchases first: total amount paid divided by total shares. That average gives the same total initial investment as your separate lots combined, though it cannot reproduce lot-by-lot tax calculations such as FIFO.

Because the calculator formats every money figure with two decimals and no thousands separators, exactly as coded. A million shares at $250.75 therefore prints as $250750000.00 rather than $250,750,000.00. The arithmetic is correct; only the presentation is plain, so read large outputs digit by digit.

Yes. The gain line and the dividend line are independent. 100 shares bought at $40 and now at $30 show a loss of $-1000.00 and -25.00%, while a $2.00 annual dividend per share still produces $200.00 of income for the year. Whether that income compensates for the price fall is a judgement the two figures let you make; the calculator does not merge them into a single return.

Add This Calculator to Your Website

Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. U.S. Securities and Exchange Commission, Investor.gov. Introduction to Investing (asset allocation, diversification, and the warning that money invested in securities is not federally insured and principal can be lost). Accessed October 24, 2026.
  2. U.S. Securities and Exchange Commission, Investor.gov. Stocks and Bonds: Common Investments (a stock as an ownership interest with a claim on a proportional share of the corporation’s assets and profits). Accessed October 24, 2026.
  3. Internal Revenue Service. Stocks (Options, Splits, Traders): Frequently Asked Questions (cost basis of shares, including dividend reinvestment plan shares at cost plus adjustments, and FIFO when shares cannot be specifically identified). Accessed October 24, 2026.
  4. Nasdaq. Dividends: All the Basics You Need to Know (dividend, special dividend, dividend yield and payout ratio definitions, with yield worked examples). Accessed October 24, 2026.
  5. Nasdaq. Market Cap, Explained (market capitalisation as shares outstanding multiplied by current price, the company-wide version of this calculator’s first formula). Accessed October 24, 2026.
  6. Nasdaq. Market Capitalization: Financial Glossary Definition (“The total dollar value of all outstanding shares. Computed as shares times current market price.”). Accessed October 24, 2026.
  7. Fidelity Investments (Canada). Understanding Your Investment Returns: Glossary (price return versus total return, and realised versus unrealised capital gains and losses). Accessed October 24, 2026.
  8. CalcXML. Realized and Unrealized Capital Gains (a gain stays unrealised while the asset is held and is realised at sale; only realised gains and losses are reported on tax returns). Accessed October 24, 2026.
  9. New York Life. Unrealized Capital Gains: Meaning and Tax Treatment (present value minus asset cost as the unrealised gain, with worked share-price examples). Accessed October 24, 2026.
  10. Securities and Exchange Board of India, Investor Education. Securities Market Investment: How to Invest (shares as part-ownership carrying dividend income and capital gains, with share prices that can rise or fall). Accessed October 24, 2026.

Related calculators

Stock Market CalculatorsStock Price Change CalculatorYou bought at $50 and the stock now trades at $65.Stock Market CalculatorsStock Margin CalculatorBuying stock on margin means the broker lends you part of the purchase price, and this calculator prices that...Stock Market Calculators Shares CalculatorHow many shares does your money buy? What will a block of shares cost once the broker takes its cut?Stock Market CalculatorsMarket Cap To Price CalculatorIf you know what a whole company is worth but not what one share should cost, the conversion is a single division: market capitalization divided by shares outstanding.Stock Market CalculatorsStock Purchase CalculatorPrice a stock purchase before you place the order.Stock Market CalculatorsSp 500 Index CalculatorMost return calculators ask for a rate you have to guess.

We use cookies to analyze traffic and to serve ads that keep our calculators free. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search