Why every bank asks “how much will we lose on average?”
Harrow Valley Bank has lent 2.2 million dollars to ten borrowers: two homeowners, three small businesses, a commercial property investor, two consumer borrowers, a credit card holder and a car buyer. Some of them will not pay back in full. Nobody knows which one, but the bank still has to answer three very practical questions before the year starts. How much should it set aside as a loss allowance? Is the interest rate on each loan high enough to cover the losses it will produce? And how much worse could things get if the economy turns? All three questions start with the same building block: the expected loss of each loan.
This free first lesson is for credit analysts, risk and finance staff in banks and lending fintechs, auditors who review loan-loss allowances, and students preparing for banking or risk exams who want to see the numbers rather than only the definitions. You need basic Excel: entering formulas, copying them down and using absolute references. In the lab above you calculate the expected loss of each of Harrow Valley Bank’s ten loans, the exposure-weighted loss rate of the whole book and a stressed expected loss in one formula. Below you find the full explanation, a worked example with the same numbers, two charts and the mistakes that trip up even experienced modellers.
The core idea: split a loss into three questions
A loan loss happens only when three things come together. The borrower must default, there must be money owed at that moment, and the bank must fail to recover all of it. Credit risk modelling turns each of these into a number:
- PD, probability of default: how likely the borrower is to default within a horizon, usually 12 months. A PD of 3.8% means that out of 1,000 similar borrowers you expect about 38 to default in the year.
- LGD, loss given default: the share of the exposure the bank loses if default happens, after selling collateral, collecting payments and paying workout costs. An LGD of 40% means the bank recovers 60 cents per dollar.
- EAD, exposure at default: the amount owed at the time of default. For a term loan this is close to the outstanding balance. For a credit line it includes part of the undrawn limit, because borrowers in trouble tend to draw on their lines.
Multiply the three and you get the expected loss: EL = PD × LGD × EAD. The word “expected” is meant in the statistical sense. It is the average loss you would see if you could repeat the year many times. In most years the actual loss on a single loan is either zero (no default) or a large amount (default). Across a portfolio of many loans the average becomes a useful planning number: it is the cost of doing business that should be built into pricing and covered by provisions.
The product of the first two drivers, PD × LGD, deserves its own name: the EL rate or expected loss rate. It tells you how many cents per dollar of exposure you expect to lose. This is what lets you compare very different loans. A 420,000 mortgage and a 9,800 credit card are hard to compare in dollars, but in EL rate terms the mortgage costs 0.09% and the card 6.4% of exposure per year. That difference is one reason card interest rates are much higher than mortgage rates.
Expected loss is not the worst case. Banks hold provisions for the expected part and capital for the unexpected loss, the amount by which losses in a bad year exceed the average. Expected loss is still the foundation of both. Under IFRS 9 the loss allowance is an expected credit loss (ECL) built from the same three drivers, and under the Basel internal ratings-based approach, banks that are approved to use it estimate PD, and for some exposures also LGD and EAD, as inputs to regulatory capital. You will meet IFRS 9 staging and lifetime ECL later in this course.
Worked example: Harrow Valley Bank’s ten-loan book
Here is the sample loan book from the lab, with the expected loss and EL rate already filled in. The inputs are columns C to E. Column F is =C2*D2*E2 copied down, and column G is =F2/E2, which is the same as =C2*D2.
| Loan | Segment | PD (12 m) | LGD | EAD (USD) | Expected loss (USD) | EL rate |
|---|---|---|---|---|---|---|
| L-101 | Mortgage | 0.6% | 15% | 420,000 | 378.00 | 0.090% |
| L-102 | Mortgage | 0.9% | 18% | 365,000 | 591.30 | 0.162% |
| L-103 | SME | 2.4% | 45% | 250,000 | 2,700.00 | 1.080% |
| L-104 | SME | 3.8% | 40% | 180,000 | 2,736.00 | 1.520% |
| L-105 | Commercial RE | 1.5% | 30% | 600,000 | 2,700.00 | 0.450% |
| L-106 | Consumer | 4.5% | 65% | 24,000 | 702.00 | 2.925% |
| L-107 | Consumer | 6.0% | 70% | 15,500 | 651.00 | 4.200% |
| L-108 | Credit card | 8.0% | 80% | 9,800 | 627.20 | 6.400% |
| L-109 | Auto | 2.2% | 35% | 32,000 | 246.40 | 0.770% |
| L-110 | SME | 1.8% | 42% | 310,000 | 2,343.60 | 0.756% |
| Portfolio | 2,206,300 | 13,675.50 | 0.620% |
Three things stand out. First, the expected loss is concentrated: the three SME loans and the commercial property loan produce 10,480 of the 13,676 dollars, about 77% of the total, although they are only 61% of the exposure. Second, the riskiest loans by rate are not the biggest problem in dollars. The credit card has the highest EL rate (6.4%) but only 627 dollars of expected loss, because the balance is small. Third, the mortgages are huge but safe: 785,000 of exposure produces only 969 dollars of expected loss, thanks to a low PD and a low LGD backed by the property.
For the whole book the bank needs one number. The total expected loss is =SUM(F2:F11) = 13,675.50 dollars. The portfolio EL rate is the total expected loss divided by the total exposure: =F12/E12 = 0.620%. You can also calculate it in one step, without any helper column, with =SUMPRODUCT(C2:C11,D2:D11,E2:E11)/SUM(E2:E11). SUMPRODUCT multiplies the three columns row by row and adds up the results, which is exactly PD × LGD × EAD summed over all loans.
=AVERAGE(G2:G11), which gives 1.835%, almost three times as high. The simple average treats the 9,800 card exactly like the 600,000 property loan. A portfolio rate must always be weighted by exposure.The stress test: what if the economy turns?
Expected loss assumes today’s PDs and LGDs. In a recession, more borrowers default and collateral sells for less, so both drivers rise at the same time. A simple stress test shocks them directly. The lab uses, for example, a PD multiplier of 2 in B15 and an LGD add-on of 10 percentage points in B16. One formula recalculates the whole book:
=SUMPRODUCT(C2:C11*$B$15, D2:D11+$B$16, E2:E11)
Inside SUMPRODUCT, C2:C11*$B$15 doubles every PD and D2:D11+$B$16 adds 0.10 to every LGD. The result is a stressed expected loss of 34,695.60 dollars, about 2.5 times the base case. Notice that the result is more than double. Doubling PD alone would give exactly 27,351 dollars, and the LGD add-on pushes it higher still, because the two shocks multiply. The low-LGD mortgages are hit hardest in relative terms: adding 10 points to a 15% LGD raises it by two thirds.
=SUMPRODUCT(IF(C2:C11*$B$15>1,1,C2:C11*$B$15),D2:D11+$B$16,E2:E11). In the same way, LGD should stay at or below 100%.How to build it in Excel, step by step
You can follow these steps in the lab above or in your own copy of Excel. The cell addresses match the lab.
- Lay out one loan per row with the inputs in separate columns: PD in C, LGD in D, EAD in E. Format PD and LGD as percentages (Home › Number › Percent Style, or
Ctrl+Shift+%) and EAD with a thousands separator (Ctrl+Shift+!). - In F2 type
=C2*D2*E2and press Enter. This is the expected loss of loan L-101: 378 dollars. - Select F2:F11 and press
Ctrl+Dto fill the formula down. The relative references move with each row. - In G2 type
=F2/E2(or=C2*D2) for the EL rate, then fill down to G11 withCtrl+D. Format as percent with two or three decimals using Home › Number › Increase Decimal. - In F12 type
=SUM(F2:F11), or select F12 and pressAlt+=for AutoSum. - In G12 type
=F12/E12. Do not fill G2’s formula down into the total row and do not use AVERAGE: the total rate must be weighted by exposure. - Put the stress inputs in their own clearly labelled cells (B15 and B16) instead of typing 2 and 0.1 into formulas. That way anyone can change the scenario.
- In B17 type
=SUMPRODUCT(C2:C11*$B$15,D2:D11+$B$16,E2:E11). PressF4while the cursor is on B15 to add the dollar signs. In the lab B17 is a single cell, so relative references work too, but absolute references make the formula safe to copy. - Check the result: with B15 = 1 and B16 = 0, B17 must equal F12. This “zero-shock” test is the quickest way to prove a stress formula is wired correctly.
- To compare several scenarios, list multipliers in a column and use Data › What-If Analysis › Data Table with B15 as the column input cell. For a chart, select the segment summary and use Insert › Charts › Clustered Column.
If you want a segment summary like Figure 3, add a helper column with the expected loss and use =SUMIFS($F$2:$F$11,$B$2:$B$11,"SME") per segment, and =SUMIFS($E$2:$E$11,$B$2:$B$11,"SME") for exposure. The segment EL rate is the first divided by the second, again weighted by exposure.

Common mistakes and how to spot them
- Forgetting LGD.
=C2*E2assumes the bank recovers nothing. Spot it when expected loss looks enormous for secured loans such as mortgages: an EL near PD × EAD for a mortgage is almost always wrong. - Averaging rates instead of weighting.
=AVERAGE(G2:G11)gives 1.835% here instead of 0.620%. Spot it by checking that the portfolio rate times total EAD equals total EL. - Multiplying the LGD add-on. “LGD + 10 points” means 0.40 becomes 0.50, not 0.44.
D2*(1+B16)is a 10% relative increase, a much milder shock. Read the scenario definition carefully: percentage points and percent are different. - Mixing horizons. A 12-month PD combined with a lifetime exposure, or a lifetime PD in a one-year budget, gives a number that means nothing. Label the horizon in the header, as the lab does with “PD (12 m)”.
- Using the limit or the balance blindly as EAD. For revolving credit, EAD is usually more than the current balance but less than the full limit. Lesson 2 shows how to estimate it with a credit conversion factor.
- Percentages stored as whole numbers. If PD is typed as 3.8 instead of 3.8%, expected loss is 100 times too high. Format input columns as percent before typing, so 3.8 becomes 3.8%.
- Hard-coded scenarios. A formula like
=SUMPRODUCT(C2:C11*2,D2:D11+0.1,E2:E11)works today but hides the assumption. Keep shocks in input cells and run the zero-shock test.
Quick reference: functions and shortcuts used
| Function or shortcut | What it does here | Example |
|---|---|---|
* (multiply) | Expected loss of one loan | =C2*D2*E2 |
SUM | Total exposure and total expected loss | =SUM(F2:F11) |
SUMPRODUCT | Multiplies columns row by row and adds them up | =SUMPRODUCT(C2:C11,D2:D11,E2:E11) |
SUMPRODUCT with arrays | Recalculates the book under a stress scenario | =SUMPRODUCT(C2:C11*$B$15,D2:D11+$B$16,E2:E11) |
SUMIFS | Expected loss or exposure per segment | =SUMIFS($F$2:$F$11,$B$2:$B$11,"SME") |
IF inside SUMPRODUCT | Caps stressed PD at 100% (Excel 365) | IF(C2:C11*$B$15>1,1,C2:C11*$B$15) |
F4 | Toggles absolute references ($B$15) | Cursor on B15, press F4 |
Ctrl+D | Fills the formula down a selection | Select F2:F11, press Ctrl+D |
Alt+= | AutoSum | Select F12, press Alt+= |
Ctrl+Shift+% | Percent format | Select C2:D11 |
Real-world uses of expected loss
- Loan pricing. A lender adds the EL rate to its funding cost, operating cost and a return on capital to set a minimum interest rate. A 6.4% EL rate on cards versus 0.09% on mortgages explains a large part of the rate gap between the two products.
- Loss allowances under IFRS 9 or CECL. The accounting provision is an expected credit loss built from PD, LGD and EAD, with 12-month ECL for performing loans in stage 1 under IFRS 9 and lifetime ECL where credit risk has increased significantly. US CECL uses lifetime expected losses from day one.
- Credit limits and approval. Credit committees compare a new loan’s expected loss with its margin. A deal whose EL rate eats most of the margin needs more collateral, a shorter term or a higher price.
- Stress testing and budgeting. Finance teams run base, adverse and severe scenarios through the same formula to plan provisions for next year and to show the board how sensitive earnings are to the economy.
- Portfolio steering. Comparing each segment’s share of exposure with its share of expected loss, as in the worked example, shows where the risk really sits and where growth targets should be careful.
What you will build in the rest of this course
Lesson 1 is free. The remaining 19 labs are part of the full course, which you unlock with a one-time payment of $9.90. Each one replaces a simple input of this lesson with a properly modelled driver, using the same fictional Harrow Valley Bank.
EAD with a Credit Conversion Factor for Undrawn Lines. You estimate a credit conversion factor from five past defaults and use it to calculate the exposure at default of revolving credit lines, so you no longer have to guess between the balance and the limit.
LGD from Collateral, Haircuts and Recovery Costs. You build the loss given default of eight loans from collateral values, haircuts, workout costs and the time value of the recovery, the way a workout desk actually thinks about it.
Rating Migration Matrix to Cumulative PD. You roll a B-rated borrower through a one-year migration matrix for four years with matrix multiplication and derive the cumulative, marginal and average annual PD.
12-Month vs Lifetime ECL with Discounting and Scenarios. You build the expected credit loss of a five-year amortising loan year by year, compare the 12-month and the lifetime figure and weight three economic scenarios.
IFRS 9 Staging: SICR Rules and Stage 1/2/3 ECL. You assign ten loans to stages with a PD test, the 30-days-past-due backstop and a watch-list flag, then book the right ECL per stage with nested IF logic.
Logistic Scorecard: Score → PD and Points to Double the Odds. You turn a logistic regression into PDs and scorecard points with PDO scaling, and count how many applicants pass a cut-off.
Mid-Course Project: Mid-Course Project: Portfolio ECL and Coverage Ratio by Segment. You summarise the whole loan book by segment, with gross exposure, ECL allowance, coverage ratio and the share in stages 2 and 3, and chart the coverage the way it appears in a bank’s risk report.
Summary
Expected loss breaks credit risk into three questions: will the borrower default (PD), how much is owed then (EAD) and how much of it is lost (LGD). EL = PD × LGD × EAD per loan, PD × LGD as the loss per dollar, and SUMPRODUCT(PD, LGD, EAD)/SUM(EAD) for the exposure-weighted portfolio rate. A stress test shocks the drivers in input cells and recalculates the whole book in one formula. For Harrow Valley Bank that means 13,675.50 dollars of expected loss on 2.2 million of loans, a portfolio EL rate of 0.62% and about 34,700 dollars in the stress scenario.
Now scroll up and do it yourself in the free lab: four tasks, instant feedback from the Coach, and a stress test you can play with by changing B15 and B16.
Frequently asked questions
What is the formula for expected loss in credit risk?
Expected loss = PD × LGD × EAD: the probability of default times the share lost if default happens times the exposure at default. For a loan with a 3.8% PD, 40% LGD and 180,000 EAD the expected loss is 2,736.
What is the difference between PD, LGD and EAD?
PD is how likely the borrower is to default within a horizon, LGD is the share of the exposure lost after recoveries, and EAD is the amount owed at the moment of default. Together they give the expected loss.
How do I calculate the portfolio expected loss rate in Excel?
Use =SUMPRODUCT(PD range, LGD range, EAD range)/SUM(EAD range). This weights each loan by its exposure. A simple AVERAGE of the loan rates overstates or understates the portfolio rate because it ignores loan size.
Is expected loss the same as IFRS 9 expected credit loss?
They use the same building blocks. IFRS 9 ECL is a probability-weighted, discounted estimate that uses 12-month ECL for stage 1 loans and lifetime ECL for stage 2 and 3, and it includes forward-looking economic scenarios.
What is the difference between expected and unexpected loss?
Expected loss is the average loss a bank plans for and covers through pricing and provisions. Unexpected loss is how much losses can exceed that average in a bad year, and it is covered by capital.
How do I stress test PD and LGD in Excel?
Keep the shocks in input cells, for example a PD multiplier and an LGD add-on, and use =SUMPRODUCT(PD*multiplier, LGD+addon, EAD). Set the multiplier to 1 and the add-on to 0 to check that the result equals the base expected loss.
Keep going: Credit Risk Modeling: PD, LGD, EAD & Expected Credit Loss
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- EAD with a Credit Conversion Factor for Undrawn Lines
- LGD from Collateral, Haircuts and Recovery Costs
- Rating Migration Matrix to Cumulative PD
- 12-Month vs Lifetime ECL with Discounting and Scenarios
- IFRS 9 Staging: SICR Rules and Stage 1/2/3 ECL
- Logistic Scorecard: Score → PD and Points to Double the Odds
- Mid-Course Project: Portfolio ECL and Coverage Ratio by Segment
- Forward-Looking PD: Turning Long-Run PDs into Scenario PDs
- EAD Profiles: Amortising Schedules and Prepayments
- Conditional PD, Survival Curve and Marginal PD for Lifetime ECL
- Workout LGD from Recovery Cash Flows and Cure Rates
- Roll Rates: Forecasting Card Charge-Offs from Delinquency Buckets
- Vintage Analysis: Cumulative Default Curves by Origination Quarter
- PD Backtesting: Predicted vs Observed Defaults with a Binomial Test
- ECL Allowance Roll-Forward: From Opening to Closing with a Waterfall
- Concentration Risk: Large Exposures, Top-5 Share and Sector HHI
- Risk-Based Pricing: EL Margin, Capital and RAROC
- Net Charge-Offs, Recoveries and Years of Allowance Coverage
- Final Project: Staging and ECL Dashboard for an Acquired Loan Book