Tabellab

Loan Grades & Interest Rates: Build the Rate Card, Price Your Loans

Lesson 1 of 20Lab

All lessons
  1. Loan Grades & Interest Rates: Build the Rate Card, Price Your LoansLabFree
  2. Amortising Loan Cash Flows to the Investor: PMT and the ScheduleLab Locked
  3. Expected Loss & Default-Adjusted Return by GradeLab Locked
  4. Net Yield after Platform Fees, Late Fees and Charge-OffsLab Locked
  5. Diversification: the Chance of a Loss with N Loans (BINOM.DIST)Lab Locked
  6. Your Real Return: IRR and XIRR of a 50-Loan PortfolioLab Locked
  7. Recoveries & Collections: Why Timing Changes the LossLab Locked
  8. Equity Crowdfunding: Outcome Distribution and Where the Value Comes From (Chart)Lab Locked
  9. Cash Drag: Idle Repayments and the Yield Your Whole Account EarnsLab Locked
  10. Vintage Analysis: Cumulative Default Curves by Origination Quarter (Chart)Lab Locked
  11. Delinquency Buckets & Roll Rates: Forecasting Charge-Offs Before They HappenLab Locked
  12. Selling Notes on the Secondary Market: Premium, Discount and the Buyer's YieldLab Locked
  13. Early Repayments: SMM, CPR and the Reinvestment GapLab Locked
  14. Provision Funds: Coverage Ratio and the Stress ShortfallLab Locked
  15. Concentration: Largest Exposure, Herfindahl Index and the Effective Number of LoansLab Locked
  16. Auto-Invest Rules: Which Loans Pass Your Filters (AND, COUNTIFS, AVERAGEIFS)Lab Locked
  17. Real-Estate Crowdlending: LTV, Forced-Sale Haircut and Loss Given DefaultLab Locked
  18. Stress Scenarios: Base, Adverse and Severe Default Paths by Grade (Chart)Lab Locked
  19. Reported vs Realistic Return: Writing Down Late LoansLab Locked
  20. Final Project: P2P Portfolio Dashboard by Grade – Net Expected Return & Income (Chart)Lab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

What a P2P loan rate really tells you

Peer-to-peer lending platforms show a list of loans, each with a grade and an interest rate, and invite you to fund a small slice of each one. The rates often look higher than a savings account, and that is the first thing a careful reader should question: why does one loan pay 6.5 % and another 21 %, and what does the average rate on a handful of loans actually mean?

This free first lesson is for people who want to understand how P2P and lending-based crowdfunding platforms price loans, for finance and economics students who meet credit spreads for the first time, and for analysts who need to rebuild a platform's rate card in a spreadsheet. You will build a rate card from a base rate and risk premiums, look up the rate for every loan in a small portfolio, and calculate the correct portfolio rate, the one weighted by the money actually lent.

Please read this first: the course is educational only and is not investment advice. It does not recommend any platform, loan type or investment, and nothing in it predicts what lending will return. LendLoop, the investor Maya, every loan and every rate here are fictional. The rate you calculate in this lesson is a gross contractual rate: it is what borrowers are scheduled to pay if every loan is repaid in full and before any fees. Real outcomes can be much lower, and money lent this way can be lost. The later lessons of this course are about exactly those deductions.

The core idea: base rate plus a premium for risk

A platform has to set a rate for thousands of loans without negotiating each one. Most use a grading system: the platform scores each borrower with its own credit model and places the loan in a grade. In the lab the grades run from A (lowest assessed risk) to F (highest).

The rate for each grade is built like the yield of a bond: borrower rate = base rate + risk premium. The base rate reflects the general level of interest rates and the platform's costs; it is the same for everyone. The risk premium is added on top and grows with the grade, because a larger share of loans in riskier grades is expected to default. A higher rate is therefore not a bonus: in large part it is compensation that the platform expects to be eaten by losses. Lesson 3 of this course turns that idea into numbers with expected loss.

In the LendLoop lab the base rate is 4.5 % and the premiums go from 2.0 % for grade A to 16.5 % for grade F. Those are fictional values chosen to make the arithmetic clear, not market data.

Once the rate card exists, you need the rate of each loan you hold. Because grades are labels, not numbers, this is a lookup with an exact match: find "B" in the grade column and return the rate from the same row. Finally, the portfolio rate is not the simple average of the rates. A USD 1,000 loan earns four times the interest of a USD 250 loan at the same rate, so each rate must count in proportion to the amount lent. That is an amount-weighted average, and in Excel it is one line: =SUMPRODUCT(amounts,rates)/SUM(amounts).

Worked example: Maya's first six loans on LendLoop

First the rate card. Column B holds the risk premiums, B3 the base rate, and column C adds them up.

GradeRisk premium (B)Base rate (B3)Borrower rate (C)Formula in C
A2.0 %4.5 %6.5 %=$B$3+B6
B4.0 %4.5 %8.5 %=$B$3+B7
C6.5 %4.5 %11.0 %=$B$3+B8
D9.0 %4.5 %13.5 %=$B$3+B9
E12.5 %4.5 %17.0 %=$B$3+B10
F16.5 %4.5 %21.0 %=$B$3+B11

LendLoop rate card: base rate + risk premium (fictional)Base rateRisk premium0%5%10%15%20%25%4.5%6.5%Grade A4.5%4.0%8.5%Grade B4.5%6.5%11.0%Grade C4.5%9.0%13.5%Grade D4.5%12.5%17.0%Grade E4.5%16.5%21.0%Grade F
Every grade on the fictional LendLoop rate card shares the same 4.5 % base rate. Only the risk premium changes, from 2.0 % for grade A to 16.5 % for grade F.

Next, Maya's six loans. For each one, column D looks up the borrower rate by grade with =VLOOKUP(B14,$A$6:$C$11,3,FALSE). The interest column multiplies the amount by the rate; it is not in the lab sheet but makes the weighting visible.

LoanGradeAmount (USD)Rate (D)Interest per year (USD)
L-1041B5008.5 %42.50
L-1042A1,0006.5 %65.00
L-1043D40013.5 %54.00
L-1044C60011.0 %66.00
L-1045E25017.0 %42.50
L-1046B7508.5 %63.75
Total3,5009.54 % (weighted)333.75

The formulas behind the totals:

  • Total amount in C20: =SUM(C14:C19) → USD 3,500.
  • Amount-weighted rate in D20: =SUMPRODUCT(C14:C19,D14:D19)/C20 → 333.75 ÷ 3,500 = 9.54 %.
  • Gross interest for one year at today's balances in D22: =SUMPRODUCT(C14:C19,D14:D19) → USD 333.75.
  • For comparison only, the simple average: =AVERAGE(D14:D19) → 10.83 %.

Why are the two averages so far apart? Maya's largest loan, USD 1,000, sits in grade A at the lowest rate, while the highest rate, 17 % on grade E, applies to the smallest loan, USD 250. A simple average gives the USD 250 loan the same voice as the USD 1,000 loan and overstates the rate on her money by 1.3 percentage points. The weighted rate is the one that reconciles: 9.54 % × USD 3,500 is exactly the USD 333.75 of scheduled interest.

Maya's gross interest per loan for one year (USD)020406080L-1041 (B, 500)USD 42.50L-1042 (A, 1,000)USD 65.00L-1043 (D, 400)USD 54.00L-1044 (C, 600)USD 66.00L-1045 (E, 250)USD 42.50L-1046 (B, 750)USD 63.75Total USD 333.75 on USD 3,500. Gross, before defaults, fees and charge-offs.
Gross scheduled interest per loan for one year at today's balances. The two loans with the most interest are a large grade A loan and a mid-sized grade C loan, not the highest-rate loan.

USD 333.75 is not "what Maya will earn". Amortising loans repay principal every month, so balances shrink and interest falls (lesson 2), some borrowers will default (lessons 3 and 7), and platforms charge fees (lesson 4). The gross figure is the starting line from which all of those are subtracted.

How to build it in Excel, step by step

These steps rebuild the lab sheet in a blank workbook. They take about ten minutes and work the same in Excel for Windows, Excel for Mac and Excel on the web.

  1. Start a new workbook (Ctrl+N). In A3 type Platform base rate (annual) and in B3 type 0.045. Format it with Ctrl+Shift+% and add one decimal with Home > Number > Increase Decimal.
  2. In A5:C5 type the headers Grade, Risk premium, Borrower rate. In A6:A11 type A to F and in B6:B11 the premiums 0.02, 0.04, 0.065, 0.09, 0.125 and 0.165.
  3. In C6 type =$B$3+B6. The dollar signs, added by pressing F4 with the cursor on B3, lock the base rate. Select C6:C11 and press Ctrl+D to fill down.
  4. In A13:D13 type the headers Loan, Grade, Your amount (USD), Rate. Enter the six loans in A14:C19.
  5. Protect the grade column from typos: select B14:B19, choose Data > Data Validation, set Allow to List and the source to =$A$6:$A$11. Now every grade must exist on the rate card.
  6. In D14 type =VLOOKUP(B14,$A$6:$C$11,3,FALSE) and fill down to D19. Column 3 of the table is the borrower rate; FALSE forces an exact match. With Microsoft 365 you can write =XLOOKUP(B14,$A$6:$A$11,$C$6:$C$11) instead.
  7. In C20 type =SUM(C14:C19) (or select C14:C19 and press Alt+= for AutoSum).
  8. In D20 type =SUMPRODUCT(C14:C19,D14:D19)/C20 and format it as a percentage with two decimals.
  9. In D22 type =SUMPRODUCT(C14:C19,D14:D19) and format it as currency with Ctrl+1 > Number > Currency.
  10. Optional check: in a spare cell type =D22/C20. It must equal D20. If it does not, one of the ranges in SUMPRODUCT is misaligned.
  11. Optional visual: select D14:D19 and use Home > Conditional Formatting > Color Scales to shade the higher rates, so the riskier grades stand out at a glance.
  12. To chart the rate card, select A5:A11, hold Ctrl and select C5:C11, then choose Insert > Charts > Clustered Column. For the stacked view above, add a helper column with the base rate in every row and use Stacked Column on the base rate and premium columns.
Name the rate card. Select A6:C11 and type RateCard in the Name Box. The lookup becomes =VLOOKUP(B14,RateCard,3,FALSE), which is easier to read and does not break when you copy it. If you prefer formulas that survive inserted columns, use =INDEX($C$6:$C$11,MATCH(B14,$A$6:$A$11,0)).

Where is the money? Exposure by grade with SUMIF

The weighted rate is one number. The next question any analyst asks is which grades produce it. In Excel that is a SUMIF per grade: put the grades A to F in a spare column, say F6:F11, and in G6 type =SUMIF($B$14:$B$19,F6,$C$14:$C$19)/$C$20, then fill down. Each cell shows the share of Maya's money lent in that grade.

GradeAmount (USD)Share of moneyInterest (USD)Share of interest
A1,00028.6 %65.0019.5 %
B1,25035.7 %106.2531.8 %
C60017.1 %66.0019.8 %
D40011.4 %54.0016.2 %
E2507.1 %42.5012.7 %
F00.0 %0.000.0 %

The interest column uses the same idea with SUMPRODUCT and a condition: =SUMPRODUCT(($B$14:$B$19=F6)*$C$14:$C$19*$D$14:$D$19). Compare the two share columns. Grades D and E hold 18.6 % of the money but produce 28.9 % of the scheduled interest. That is the rate card working as designed: the higher premiums are there because the platform expects more losses in those grades, so a larger share of the scheduled interest depends on the borrowers the platform itself rates as riskier. Keep that picture in mind for lesson 3, where expected loss is subtracted grade by grade.

Questions to ask before trusting any rate card

A spreadsheet can only be as good as the inputs you type into it. When you rebuild a real platform's published rate card for study, these questions help you understand what the numbers do and do not say.

  • Is the rate the borrower rate or the investor rate? Some platforms show what the borrower pays, others show what investors receive after a servicing fee. The difference matters for every later calculation.
  • Is it an annual nominal rate? Monthly payments compound slightly differently from a single annual payment. Lesson 2 shows how PMT handles this.
  • How are grades defined, and have the definitions changed? A grade is a platform's own label. A "B" on one platform says nothing about a "B" on another.
  • What happens to the base rate over time? If the base rate moves, new loans are priced differently while existing loans usually keep their original rate. A single rate card is a snapshot.
  • What is not in the rate? Fees, defaults, recovery costs, cash waiting to be lent and the time value of money all sit outside the rate card. This course adds them one lesson at a time.

Why the highest rate is not automatically the best number

It is tempting to sort the loan list by rate and read the top as the most attractive. The rate card itself explains why that reading is incomplete. The premium for grade F, 16.5 % in the lab, exists because the platform expects a meaningful share of grade F loans not to be repaid in full. If a loan defaults, the investor can lose part or all of the principal, and that loss is far larger than one year of interest. A 21 % rate on a loan that stops paying after a few months can end with less money than a 6.5 % rate on a loan that runs to maturity.

So the rate card answers one question only: what borrowers are scheduled to pay. To compare grades in a meaningful way you need at least three more numbers per grade: the probability of default, the share of the balance lost when a default happens, and the fees. With those, the spreadsheet can produce a default-adjusted figure that can be compared across grades, under clearly stated fictional assumptions. That is exactly the model you build in lessons 3 and 4, and it is why this course starts with the rate card and does not stop there.

Common mistakes and how to spot them

The lab's checker recognises these and tells you what went wrong. In your own files, use the tests.

  • Returning the premium instead of the rate. =VLOOKUP(B19,$A$6:$C$11,2,FALSE) returns column 2, the risk premium (4.0 % for grade B), not the borrower rate (8.5 %). Test: every looked-up rate must be at least the base rate.
  • Leaving out FALSE. Without the fourth argument VLOOKUP does an approximate match, which can return a neighbouring grade if the table is not sorted the way Excel expects. Test: change one loan's grade and confirm the rate jumps to exactly that grade's row.
  • Averaging rates with AVERAGE. 10.83 % instead of 9.54 % here. Test: the portfolio rate × total amount must equal the total interest.
  • Misaligned SUMPRODUCT ranges. =SUMPRODUCT(C14:C19,D15:D20) pairs each amount with the next loan's rate. Test: both ranges must start and end on the same rows.
  • Forgetting to lock the base rate. =B3+B6 copied down becomes =B4+B7, adding an empty cell. Test: in formula view (Ctrl+`) every rate formula must reference $B$3.
  • Reading the gross rate as a return. The weighted rate is a contractual figure before defaults and fees. Test: ask what happens to the number if one loan stops paying; if your sheet has no answer yet, it is still a gross figure.

Simple average vs amount-weighted rate (fictional)0%3%6%9%12%10.83%AVERAGE of six rates9.54%SUMPRODUCT ÷ SUM (weighted)
For Maya's six fictional loans, a simple AVERAGE overstates the rate on her money by about 1.3 percentage points. The amount-weighted rate is the one that matches the scheduled interest.

A picture of the topic

A P2P portfolio is many small slices of many loans, each with its own grade, amount and rate.

Laptop with a lending platform dashboard, coins and a notebook, illustrating peer-to-peer lending math
Every later lesson in this course starts from the same table: loans, grades, amounts and the rate card.

Quick reference: functions and shortcuts used

Everything in the lab uses the functions below.

Function or shortcutWhat it does hereExample
VLOOKUP (exact)Finds a loan's rate by grade=VLOOKUP(B14,$A$6:$C$11,3,FALSE)
XLOOKUPModern lookup, exact match by default=XLOOKUP(B14,$A$6:$A$11,$C$6:$C$11)
INDEX + MATCHLookup that survives inserted columns=INDEX($C$6:$C$11,MATCH(B14,$A$6:$A$11,0))
SUMPRODUCTAmount × rate, summed=SUMPRODUCT(C14:C19,D14:D19)
SUM / Alt+=Total amount lent=SUM(C14:C19)
AVERAGESimple average, for comparison only=AVERAGE(D14:D19)
F4Locks a reference with $=$B$3+B6
Ctrl+DFills formulas downC6:C11, D14:D19
Data Validation (List)Allows only grades that existsource =$A$6:$A$11
Ctrl+`Shows all formulasaudit the sheet

Real-world uses

Rate cards and weighted averages appear wherever many loans or many positions are summarised in one number.

  • Understanding a platform's pricing. Rebuilding a published rate card as base rate plus premium shows how much of each rate is compensation for expected risk, which is the first question before reading any headline rate.
  • Summarising a loan book. Banks, credit funds and leasing companies report a weighted average interest rate for exactly the reason in this lesson: big balances must count more than small ones.
  • Comparing grade mixes. Two portfolios can have the same simple average rate and very different weighted rates depending on where the money sits. The weighted figure tells you which grades your money is really exposed to.
  • Business loans and invoices. A small company with several credit lines uses the same SUMPRODUCT ÷ SUM to find its average cost of borrowing.
  • Course and exam work. Credit spread exercises in finance courses use the same base-plus-premium structure, so the lab doubles as practice for coursework.

What you will build in the rest of this course

Lesson 1 is free. The lessons below make up the paid course (USD 9.90, one-time). Each lesson continues with fictional LendLoop and Seedwell data and adds one of the deductions or risk measures that sit between a headline rate and an actual outcome.

Amortising Loan Cash Flows to the Investor: PMT and the Schedule. You calculate the monthly payment on a note with PMT, split each payment into interest and principal for the first year and total the interest, and see why a 9.5 % rate does not produce 9.5 % of the original amount in interest every year.

Expected Loss & Default-Adjusted Return by Grade. You combine illustrative default probabilities and loss rates into an expected loss per grade, adjust each headline rate for it and find the default rate at which a high-risk grade breaks even in the model.

Net Yield after Platform Fees, Late Fees and Charge-Offs. You walk from gross interest to net income: servicing fees, late fees, charge-offs and recoveries after collection costs, and see how each one changes the yield.

Diversification: the Chance of a Loss with N Loans (BINOM.DIST). You measure how many defaults portfolios of different sizes can absorb and use BINOM.DIST and BINOM.INV to calculate the probability of losing money and a bad-year outcome in a simple model.

Your Real Return: IRR and XIRR of a 50-Loan Portfolio. You build the monthly net cash flows of a fictional portfolio after defaults, recoveries and fees, then measure the return with IRR, annualise it correctly and cross-check with XIRR.

Recoveries & Collections: Why Timing Changes the Loss. You compare four recovery routes for defaulted loans by net cash, present value and effective loss given default, and see why money recovered later is worth less.

Equity Crowdfunding: Outcome Distribution and Where the Value Comes From (Chart). You calculate the expected multiple of a fictional crowdfunding portfolio from an outcome distribution and chart how much of it depends on a few rare outcomes.

Summary

A P2P rate card is a base rate plus a risk premium per grade: =$B$3+B6. Each loan's rate comes from an exact-match lookup: =VLOOKUP(B14,$A$6:$C$11,3,FALSE). The portfolio rate is weighted by the amount lent: =SUMPRODUCT(C14:C19,D14:D19)/SUM(C14:C19), which gives 9.54 % for Maya's fictional loans, not the 10.83 % a simple average suggests. And all of it is gross: a contractual starting point before repayments, defaults and fees.

Scroll up and try the lab: build the rate card, look up each loan's rate, calculate the weighted rate in D20 and the gross interest in D22. Then change a premium or move money between loans and watch the weighted rate respond. The data is fictional and the course is educational, not a recommendation to lend or invest.

Frequently asked questions

How do P2P lending platforms set interest rates?

Many platforms grade each borrower with their own credit model and set the rate as a base rate plus a risk premium for that grade. Riskier grades carry higher premiums because more of those loans are expected to default.

What does a loan grade mean in P2P lending?

A grade is the platform's label for the assessed credit risk of a loan, for example A for the lowest and F for the highest risk. Each platform defines its own grades, so they are not comparable across platforms.

How do I calculate a weighted average interest rate in Excel?

Use =SUMPRODUCT(amounts,rates)/SUM(amounts). Each rate then counts in proportion to the money lent at that rate.

Why not use AVERAGE for a loan portfolio rate?

AVERAGE gives a small loan the same weight as a large one. In the lab it shows 10.83 % while the rate on the money actually lent is 9.54 %.

Is the P2P interest rate the same as my return?

No. The rate is a gross contractual figure. Repayments of principal, defaults, recoveries and platform fees all change the result, and money lent can be lost.

Which lookup function should I use for a rate card?

Any exact-match lookup works: VLOOKUP with FALSE as the last argument, XLOOKUP, or INDEX with MATCH(...,0). Always force an exact match when looking up text labels like grades.

Keep going: P2P Lending & Crowdfunding Returns: Defaults, Diversification & Net Yield

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.

  1. Amortising Loan Cash Flows to the Investor: PMT and the Schedule
  2. Expected Loss & Default-Adjusted Return by Grade
  3. Net Yield after Platform Fees, Late Fees and Charge-Offs
  4. Diversification: the Chance of a Loss with N Loans (BINOM.DIST)
  5. Your Real Return: IRR and XIRR of a 50-Loan Portfolio
  6. Recoveries & Collections: Why Timing Changes the Loss
  7. Equity Crowdfunding: Outcome Distribution and Where the Value Comes From (Chart)
  8. Cash Drag: Idle Repayments and the Yield Your Whole Account Earns
  9. Vintage Analysis: Cumulative Default Curves by Origination Quarter (Chart)
  10. Delinquency Buckets & Roll Rates: Forecasting Charge-Offs Before They Happen
  11. Selling Notes on the Secondary Market: Premium, Discount and the Buyer's Yield
  12. Early Repayments: SMM, CPR and the Reinvestment Gap
  13. Provision Funds: Coverage Ratio and the Stress Shortfall
  14. Concentration: Largest Exposure, Herfindahl Index and the Effective Number of Loans
  15. Auto-Invest Rules: Which Loans Pass Your Filters (AND, COUNTIFS, AVERAGEIFS)
  16. Real-Estate Crowdlending: LTV, Forced-Sale Haircut and Loss Given Default
  17. Stress Scenarios: Base, Adverse and Severe Default Paths by Grade (Chart)
  18. Reported vs Realistic Return: Writing Down Late Loans
  19. Final Project: P2P Portfolio Dashboard by Grade – Net Expected Return & Income (Chart)

Buy course — $9.90 See the full course