When it comes to investing, understanding the value of your portfolio is crucial. It's not just about knowing how much money you have, but also about understanding the potential risks and returns. So, what is the formula for portfolio value? Let's dive in.
Calculating Portfolio Value: The Basics
The most straightforward way to calculate your portfolio value is to add up the current value of all your investments. This includes stocks, bonds, mutual funds, ETFs, and any other securities you own. Here's a simple formula:
Portfolio Value = (Number of Shares * Current Price) + Cash + Value of Other Investments

Example
Let's say you have:
- 100 shares of Company A at $50 per share
- 50 shares of Company B at $30 per share
- $10,000 in a money market account
- A bond worth $5,000
Your portfolio value would be:
Portfolio Value = (100 * $50) + (50 * $30) + $10,000 + $5,000 = $15,000 + $1,500 + $10,000 + $5,000 = $31,500

Considering Gains and Losses
However, this method doesn't account for gains or losses. If you bought your shares at a lower price and they've increased in value, you have unrealized gains. If they've decreased, you have unrealized losses. To calculate your portfolio's total return, you need to consider these factors.
The formula for total return is:
Total Return = (Portfolio Value - Initial Portfolio Value) / Initial Portfolio Value

Example
Using the previous example, let's say you initially invested $25,000. Your total return would be:
Total Return = ($31,500 - $25,000) / $25,000 = $6,500 / $25,000 = 0.26 or 26%
Measuring Risk: Standard Deviation
While knowing your portfolio's value and return is important, it's also crucial to understand the risk you're taking. One common way to measure risk is through standard deviation. This measures how much the returns of your portfolio vary from the average return.
The formula for standard deviation is:
Standard Deviation = √[∑(Xi - Xm)² / N]
Where:
- Xi = individual return
- Xm = mean return
- N = number of periods
Diversification: Spreading Risk
One way to manage risk is through diversification. This involves investing in a variety of assets to spread risk. The more diversified your portfolio, the less impact any one investment's poor performance should have on your overall portfolio value.
Here's a simple way to calculate the expected portfolio variance (a measure of risk) using diversification:
Expected Portfolio Variance = ∑(Wi * Si²)
Where:
- Wi = weight of each asset in the portfolio
- Si = standard deviation of each asset






















