1. Calculators
  2. Portfolio Management & Performance

Portfolio Diversification Calculator

Find out how diversified a portfolio really is. Enter your holdings to get the Herfindahl index, the effective number of holdings and the weight of your largest positions, then see how far adding names can bring volatility down.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

List each position and its market value. The two risk inputs are optional: leave them empty for the concentration figures only.

Holdings
Name or tickerMarket value
$
$
$
$
$
$
$
$
%
Typical annualized volatility of a single stock. Large US companies often run 20%–35%.
Between 0 and 1. Stocks in one market often average 0.2–0.4; the same sector is higher.

Results

Effective number of holdings5.68 positions behave like 5.6 equal-sized ones. Moderately concentrated.
Herfindahl-Hirschman index
0.1785
1,785 on the 0–10,000 scale
Largest position (Company A)
30.0%
Top 3 holdings
63.7%
Top 5 holdings
84.4%
Estimated portfolio volatility
19.6%
Versus 30% for a single holding
Lowest possible with this correlation
16.4%
σ × √ρ, with infinitely many holdings
Remaining risk that is diversifiable
29.4%
Share of the portfolio’s variance that more, smaller positions could remove

One position is more than a quarter of the portfolio. A 40% fall in Company A alone would cost $9,600, 12.0% of the total.

Your 8 holdings carry the concentration of 5.6 equal positions, because Company A alone is 30.0% of the money. Equal-weighting the same 8 names would bring the estimated volatility from 19.6% to 18.7%.

Volatility of an equal-weight portfolio by number of holdings (σ 30%, ρ 0.30)

15%20%25%30%18152229364350Floor σ√ρYour effective N

Each extra name helps less than the one before. Correlation sets a floor that no number of holdings can break through.

Holdings by weight

HoldingValueWeightCumulativeShare of HHI
Company A$24,000.0030.0%30.0%50.4%
Company B$15,000.0018.8%48.8%19.7%
Fund C$12,000.0015.0%63.7%12.6%
Company D$9,000.0011.3%75.0%7.1%
Company E$7,500.009.4%84.4%4.9%
Fund F$6,000.007.5%91.9%3.2%
Company G$4,500.005.6%97.5%1.8%
Company H$2,000.002.5%100.0%0.4%
Total$80,000.00100.0%100.0%100.0%

The share of HHI shows how much of the concentration each position causes: weights are squared, so large positions dominate.

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the portfolio diversification calculator

The calculator has two tools.

Your holdings measures the concentration of an actual portfolio:

  1. List each position and its market value. Use the current values from your brokerage statement, not what you paid. The example has eight fictional holdings worth $80,000 in total; replace them with your own and add rows as needed.
  2. Optionally enter an average volatility and an average correlation. These turn the concentration figures into an estimate of portfolio volatility. Leave them empty if you only want the weights and the index.

How many holdings? answers a general question: for a given volatility and correlation, how much does each extra equal-sized position reduce risk, and where does the benefit stop?

The formulas

Weight wi = Valuei ÷ Total value
HHI = Σ wi2
Effective number of holdings = 1 ÷ HHIThe Herfindahl-Hirschman index (HHI) runs from 1/N for N equal positions to 1 for a single holding. Multiplied by 10,000 it gives the 0–10,000 scale used in antitrust work.

To link concentration with risk, the calculator assumes every holding has the same volatility σ and every pair has the same correlation ρ. Under that assumption the portfolio’s variance depends only on the HHI:

Portfolio volatility = σ × √( HHI + ρ × (1 − HHI) )
Floor with unlimited holdings = σ × √ρFor N equal weights, HHI = 1/N, so volatility = σ × √(1/N + ρ × (1 − 1/N)). The remaining diversifiable share is (σp2 − ρσ2) ÷ σp2.

A worked example

The example portfolio holds 8 positions worth $80,000.00. The largest, Company A, is 30.0% of the money, the top three are 63.7% and the top five 84.4%.

Squaring and adding the weights gives an HHI of 0.1785 (1,785 points), so the effective number of holdings is 5.6. The portfolio is as concentrated as 5.6 equal positions, not eight.

With 30% volatility per holding and an average correlation of 0.3, the estimated portfolio volatility is 19.6%. The floor for that correlation is 16.4%, and 29.4% of the portfolio’s remaining variance could still be removed with more, smaller positions. Holding the same eight names in equal amounts would give 18.7%.

Equal weights are the benchmark: the same eight holdings at $10,000 each would have an HHI of 0.1250 and an effective number of exactly 8.

Why position size matters as much as the count

Counting holdings overstates diversification whenever the weights are uneven. The HHI squares each weight, so a 30% position contributes 0.09 to the index while a 2.5% position contributes about 0.0006. The table under the results shows each holding’s share of the HHI: in the example, Company A alone causes about half of the concentration.

That is why a portfolio of 40 stocks with one large legacy position can be less diversified than 12 stocks held in equal amounts. Common causes are company stock from an employer, a position that grew after a big run, or an inheritance that was never rebalanced.

How many holdings is enough?

Each new equal-sized holding removes a smaller slice of risk than the one before, and correlation sets the floor. With 30% volatility per holding and a correlation of 0.3:

Holdings Portfolio volatility
1 30.0%
10 18.2%
20 17.36%
30 17.1%
100 16.6%
Unlimited 16.43%

Going from one to ten holdings removes most of the risk that can be removed. Going from 30 to 100 barely moves the number. One fact holds whatever the correlation: N equal holdings always remove a share of 1 − 1/N of the diversifiable variance, so ten names remove 90% of it and twenty remove 95%.

Correlation changes where the floor sits and how many names it takes to get close. At a correlation of 0.1 the floor is 9.49% and you need 43 holdings to get within 10% of it. At 0.6 the floor is 23.24% and 4 holdings already get you there, because most of the risk is shared and cannot be diversified away within that group. Correlations between stocks tend to rise in sharp market sell-offs, which is when diversification across stocks helps least.

How to read the results

  • Effective number below 5: a few positions drive the outcome. A large fall in the biggest holding would show up clearly in the total.
  • 5 to 20: typical of a hand-picked stock portfolio. Check the largest position and the top-three share.
  • Above 20: the position sizes are well spread. Risk now depends mainly on what the holdings have in common, such as sector, country or style, which this index does not see.

What this calculator does not include

  • Real correlations differ by pair. The risk estimate uses one average correlation and one volatility for every holding. A full calculation needs the correlation matrix; our portfolio volatility calculator uses it.
  • Look-through for funds. A fund counts as one holding even if it owns hundreds of stocks, and two funds that own the same companies are treated as unrelated.
  • Sector and factor concentration. Ten technology stocks can score well on the HHI and still move together.
  • Other asset classes. Bonds, cash and real estate change portfolio risk in ways a stock-by-stock count does not capture.

Frequently asked questions

What is the effective number of holdings?
It is the number of equal-sized positions that would give the same concentration as your portfolio, calculated as 1 divided by the sum of the squared weights. The example's 8 holdings have an effective number of 5.6, because one position is 30.0% of the money.
How many stocks do I need to be diversified?
There is no single number, because it depends on how correlated the stocks are. With an average correlation of 0.3 and 30% volatility per stock, 12 equal-weight holdings bring volatility within 10% of the lowest level diversification can reach. With a correlation of 0.1 it takes 43. A single broad index fund holds hundreds of stocks and reaches that floor directly.
What is a good Herfindahl index for a portfolio?
Lower is more diversified. An index of 0.10 (1,000 on the 0–10,000 scale) is the same as ten equal positions, and 0.05 is the same as twenty. Whether that is enough depends on what the holdings are: twenty stocks in one sector are far less diversified than twenty spread across industries.
Does owning more funds mean better diversification?
Not necessarily. Three large US stock index funds largely own the same companies, so together they add little beyond what one of them gives. The calculator treats each line as a separate position, so enter overlapping funds with care or combine them into one row.
Can diversification remove all risk?
No. Adding holdings removes the risk specific to individual companies, but the part driven by the market as a whole remains. With equal volatility σ and average correlation ρ, volatility can fall no lower than σ × √ρ however many holdings you add.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.