Stock Portfolio Calculator
What is my stock portfolio worth and how much have I gained?
Enter your stock holdings, purchase prices, and current market prices. See your total portfolio value, gains or losses, and percentage returns for each position and overall portfolio.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
This stock portfolio calculator computes your total portfolio value by multiplying each stock holding by its current market price. It then compares this current value to your original investment cost to determine your gains or losses.
The calculator tracks both absolute dollar gains and percentage returns. Your percentage return shows how much your money has grown relative to what you invested, making it easy to compare performance across different investment amounts. For example, a $500 gain on a $5,000 investment (10% return) performed better than a $800 gain on a $10,000 investment (8% return).
Beyond simple math, the calculator helps you see portfolio concentration risk. If one stock dominates your holdings, you might need to rebalance. Professional investors typically limit individual positions to 5-10% of their total portfolio to manage risk.
The tool calculates your cost basis (what you paid) versus current market value across all positions. This gives you the information needed for tax planning, especially if you're considering harvesting losses to offset gains in taxable accounts.
When To Use This
Right tool, right situation
Use this calculator monthly to track your investment progress and spot trends in your portfolio performance. Regular monitoring helps you identify when positions grow too large relative to your total portfolio, signaling a need for rebalancing.
Calculate portfolio value before making new investments to see how additional purchases affect your allocation. If one stock already represents 25% of your portfolio, buying more concentrates your risk further.
Run the calculation before tax season to identify positions with gains or losses. This information helps with tax-loss harvesting strategies in taxable accounts, where you can sell losing positions to offset gains.
Use the tool when considering major financial decisions. Knowing your exact portfolio value helps determine if you can afford a large purchase or need to adjust your risk tolerance based on current market conditions.
Common Mistakes
Why results sometimes look wrong
The biggest mistake is checking portfolio value too frequently and making emotional decisions. Daily price swings are normal and don't reflect long-term investment success. Set a schedule — monthly or quarterly — and stick to it.
Many investors forget to include all costs in their purchase price. If you paid $150 per share plus $10 in trading fees for 100 shares, your true cost basis is $151 per share, not $150. This affects your actual return calculation.
Comparing your portfolio performance to individual stock winners creates unrealistic expectations. You'll always find stocks that outperformed your picks, but cherry-picking winners ignores the losers. Compare your returns to broad market indices like the S&P 500 for realistic benchmarking.
Another common error is focusing only on percentage returns without considering risk. A stock that gained 50% but dropped 30% the next year isn't necessarily better than one with steady 10% annual gains. Consistency often beats volatility in long-term wealth building.
The Math
Worked examples and deeper derivation
Portfolio value calculation uses basic multiplication: shares owned × current price per share = position value. Sum all positions for total portfolio value. Your gain or loss equals current value minus original investment cost.
Percentage return uses the formula: ((Current Value - Original Cost) / Original Cost) × 100. This standardizes performance regardless of investment size. A 15% return means your money grew by 15 cents for every dollar invested.
The calculator weights each stock's performance by its portfolio percentage. A 20% gain on a stock that represents 50% of your portfolio has much more impact than a 20% gain on a 5% position. This weighted impact explains why diversification matters — no single position can destroy your entire portfolio.
When you add positions, the math compounds. Three stocks each up 10% don't necessarily mean your portfolio is up 10%. The actual portfolio return depends on how much money you invested in each position and their relative performance.
Expert Unlock
The thing most explanations skip
Professional portfolio managers track position-level attribution to understand which holdings drive overall performance. A portfolio up 8% might contain stocks up 25% and others down 15% — the weightings determine the net result. This attribution analysis reveals whether your stock picking adds value or if you'd perform better in index funds.
How do I know if my portfolio performance is actually good?
Need something this doesn't cover?
Suggest a tool — we'll build it →