Weighted average maturity (WAM) is a single number that summarizes the average time until the debts or investments in a portfolio mature, weighted by the amount of each holding. In Excel, you calculate it by multiplying each maturity (in years or months) by its weight (usually the dollar amount or percentage of the total), summing those products, and then dividing by the total weight. You can do this with a simple formula, or with SUMPRODUCT for a cleaner one-cell solution. This guide walks you through both methods, plus how to handle common issues like missing data or weights that don't add up to 100%.
What You'll Need
- Excel (any recent desktop or web version works).
- Your data in a table: at minimum, a column for the maturity (in years or months) and a column for the amount or weight of each item.
- Optional: a column for the issue/start date if you need to compute maturity from dates.
Step-by-Step
We'll use a simple example: a bond portfolio with three bonds. Bond A: $10,000, matures in 2 years. Bond B: $20,000, matures in 5 years. Bond C: $5,000, matures in 10 years.
- Set up your data. In columns A, B, and C, put headers like "Bond", "Amount", "Maturity (Years)". Enter the data below. For the example: A2="A", B2=10000, C2=2; A3="B", B3=20000, C3=5; A4="C", B4=5000, C4=10.
- Calculate the total amount. In a cell (say E1), type
=SUM(B2:B4)and press Enter. This gives the total portfolio amount. For our example, it's 35000. - Calculate the weighted product for each row. In column D, next to each bond, type
=B2*C2(for row 2), then drag the formula down to row 4. This multiplies the amount by the maturity. For Bond A: 10000*2=20000; Bond B: 20000*5=100000; Bond C: 5000*10=50000. - Sum the weighted products. In a cell (say E2), type
=SUM(D2:D4)and press Enter. This gives the total of amount*months. For our example, 20000+100000+50000=170000. - Divide the sum of products by the total amount. In a cell (say E3), type
=E2/E1and press Enter. The result is the weighted average maturity in years. For our example, 170000/35000 = 4.857 years.
That's the basic method. But you can make it more efficient with SUMPRODUCT.
Using SUMPRODUCT for a single-cell formula
- Skip the helper column. Instead of column D, you can directly type
=SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4)in any cell. SUMPRODUCT multiplies each amount by its maturity and sums the results, exactly like our column D sum. Then divide by the total amount. This gives the same 4.857 years. - Using percentages as weights. If your weights are already in percentage form (e.g., 40%, 40%, 20%), make sure they are entered as decimals (0.4, 0.4, 0.2) or as actual percentages with the % sign. Then the formula becomes
=SUMPRODUCT(C2:C4,B2:B4)where B is the weight and C is the maturity. No division needed because the weights sum to 1. But if they don't sum to 1, you still need to divide by the sum of weights. - Handling dates instead of years. If you have issue dates and maturity dates, first compute the years to maturity in a helper column. For example, if column A has issue date and column B has maturity date, in column C type
=(B2-A2)/365.25to get years (using 365.25 accounts for leap years). Then use that column as the maturity input. - Check your result. The WAM should always be between the shortest and longest maturity. In our example, it's 4.857, which is between 2 and 10. If it's outside that range, you likely have a data entry error.
Common Mistakes
- Using the wrong weight. The weight must be the amount of each investment, not the number of securities. For example, if you have 3 bonds of $10,000 each, the weight is $10,000 per bond, not 1 per bond.
- Forgetting to divide by the total. If you just sum the products (amount*time) without dividing by the total amount, you get a meaningless large number. Always divide by the sum of weights.
- Mixing time units. If some maturities are in months and others in years, the result will be wrong. Convert everything to the same unit first. For example, 6 months = 0.5 years.
- Including blank or text cells. SUMPRODUCT and SUM will ignore text, but if a cell looks like a number but is actually text (e.g., "2 years"), it will be ignored, leading to an incorrect result.
- Weights that don't sum to 100%. If you're using percentages, they must sum to 100% (or 1 when in decimal). If they don't, you must divide by the actual sum of weights, not assume 1.
Tips
- Use named ranges. For large datasets, name your ranges (e.g., select B2:B100, then in the Name Box type "Amount") to make formulas easier to read:
=SUMPRODUCT(Amount,Maturity)/SUM(Amount). - Format the result. Use the Number Format to show a reasonable number of decimal places (e.g., 2). The result is in years, so 4.86 years is clearer than 4.857142857.
- Add a check column. Create a column that shows each row's contribution to the WAM:
=B2*C2/$E$1. Sum that column; it should equal your WAM. This helps you spot which bonds are driving the average. - Use a table. Convert your data to an Excel Table (Ctrl+T). Then your formulas will automatically expand as you add new rows, and you can use structured references like
=SUMPRODUCT(Table1[Amount],Table1[Maturity])/SUM(Table1[Amount]). - For monthly maturities. If you want the result in months, just keep your maturities in months and the formula works the same, but the result is in months. To convert to years, divide by 12.
Troubleshooting
If your result is #VALUE! or #DIV/0!: The #VALUE! error usually means you have text in a numeric field. Check that all maturity and amount cells are numbers. The #DIV/0! error means your total weight is zero. Check that your amount column has positive numbers and that you didn't accidentally sum the wrong range.
If the result seems too high or too low: Verify that your maturities are in the same unit. If you have a mix of months and years, convert. Also, check that you didn't accidentally include a row with a huge amount or a very long maturity that skews the average—that's expected, but verify it's correct.
If SUMPRODUCT returns an unexpected number: Make sure the two ranges are the same size. If one range is B2:B4 and the other is C2:C5, you'll get an error. Also, if your weights are percentages, remember that 10% is 0.10, not 10.
If the formula works but the result is different from manual calculation: Re-check your manual calculation. A common error is forgetting to divide by the total, or using the wrong row. Try the helper column method to see where the discrepancy is.
If you have blank rows in your data: Blank cells are treated as zero, which can drag the average down. Use a filter to remove blanks, or use an array formula that ignores blanks, but the simplest is to delete or fill blank rows.
Frequently Asked Questions
What is the difference between weighted average maturity and weighted average life?
Weighted average maturity (WAM) is the average time until each debt matures, weighted by the principal amount. Weighted average life (WAL) is similar but often used for amortizing securities, where principal is paid down over time; WAL accounts for scheduled principal repayments, not just the final maturity date. In Excel, WAL is calculated the same way but uses the scheduled principal payment amounts as weights and the time until each payment.
Can I use weighted average maturity for bonds with different coupon rates?
Yes. The coupon rate does not affect the WAM calculation—only the principal amount and the maturity date matter. If you want to incorporate coupon payments, you'd be looking at duration, which is a different metric.
How do I calculate WAM for a portfolio of loans with different origination dates?
First, compute the remaining time to maturity for each loan (from today's date to the maturity date). Use a formula like =DATEDIF(TODAY(),MaturityDate,"y") for full years, or =(MaturityDate-TODAY())/365.25 for fractional years. Then use that as the maturity input in the WAM formula.
What if my weights are in dollars but I want the WAM as a percentage of total?
You can still use dollar amounts as weights. The WAM result is in time units (years or months) regardless of the weight unit. To express the weight as a percentage, you'd divide each amount by the total, but the WAM result is the same.
Is there a built-in Excel function for weighted average maturity?
No, Excel does not have a dedicated WAM function. You use SUMPRODUCT and SUM as shown, or manually with helper columns.
Can I calculate WAM for a portfolio with negative weights (e.g., short positions)?
Yes, the formula works with negative weights, but the result may be less intuitive. For example, a short position with a long maturity could pull the WAM down or even make it negative. In practice, WAM is usually calculated on long-only portfolios.