Loan Default Prediction Dataset
This dataset provides detailed borrower profiles and comprehensive loan performance records, including payment history and default status, to support advanced risk modeling and mitigation strategies. It is ideal for predictive analytics, credit scoring, and financial risk assessment in lending environments.
Sample rows
preview · 8 of 200 rows · all 25 columns| loan_idstring | loan_purposestring | loan_term_monthsinteger | loan_default_flagboolean | borrower_employment_statusstring | borrower_idstring | borrower_namestring | borrower_dobdate | borrower_genderstring | borrower_annual_incomefloat | borrower_credit_scoreinteger | borrower_address_streetstring | borrower_address_citystring | borrower_address_statestring | borrower_address_postal_codestring | borrower_address_countrystring | loan_amountfloat | loan_interest_ratefloat | loan_issue_datedate | loan_maturity_datedate | loan_statusstring | loan_default_datedate | loan_total_payments_madefloat | loan_number_of_payments_missedinteger | loan_last_payment_datedate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LN000001 | home | 180 | false | employed | BR10001 | Jacob Thompson | 1987-09-04 | male | 82000 | 692 | 1429 Maple Ave | Houston | TX | 77002 | USA | 260000 | 4.9 | 2020-07-20 | 2035-07-20 | active | blank | 36000 | 0 | 2024-05-01 |
| LN000002 | personal | 36 | false | employed | BR10002 | Priya Iyer | 1993-02-12 | female | 54000 | 776 | B-17 Saraswati Rd | Mumbai | MH | 400005 | India | 9500 | 9.2 | 2021-03-15 | 2024-03-15 | closed | blank | 11850 | 0 | 2024-03-15 |
| LN000003 | auto | 12 | false | retired | BR10003 | Lucas Brown | 1961-11-24 | male | 0 | 441 | 278 Pine St | Portland | OR | 97204 | USA | 6500 | 19.5 | 2023-02-10 | 2024-02-10 | delinquent | blank | 3200 | 2 | 2023-12-01 |
| LN000004 | business | 60 | false | self-employed | BR10004 | Emily Zhang | 1983-06-20 | female | 124000 | 734 | 48 Yonge St | Toronto | ON | M5E1X8 | Canada | 35000 | 7.3 | 2022-09-01 | 2027-09-01 | active | blank | 9800 | 0 | 2024-05-01 |
| LN000005 | education | 18 | false | student | BR10005 | Akash Sharma | 1999-12-18 | male | 0 | 315 | 3/48 Sector 10 | Delhi | DL | 110081 | India | 2300 | 15.1 | 2022-01-20 | 2023-07-20 | delinquent | blank | 780 | 3 | 2023-04-20 |
| LN000006 | auto | 24 | false | employed | BR10006 | Anna Kowalski | 1974-03-05 | female | 67000 | 665 | 15 Nowa St | Warsaw | Maz | 00-950 | Poland | 12000 | 6.8 | 2023-04-23 | 2025-04-23 | active | blank | 3400 | 0 | 2024-05-20 |
| LN000007 | business | 48 | false | self-employed | BR10007 | Mohammed Al-Sayed | 1980-08-17 | male | 148000 | 701 | 32 King Faisal Rd | Riyadh | Riyadh | 11564 | Saudi Arabia | 87000 | 8.5 | 2022-10-10 | 2026-10-10 | active | blank | 17700 | 0 | 2024-05-01 |
| LN000008 | personal | 12 | false | retired | BR10008 | Linda Miller | 1954-05-11 | female | 12000 | 362 | 433 Oak Street | Cleveland | OH | 44101 | USA | 2200 | 22.3 | 2023-06-21 | 2024-06-21 | active | blank | 1200 | 1 | 2024-03-15 |
| LN000009 | education | 18 | false | student | BR10009 | Sarah Lee | 1997-10-02 | female | 0 | 326 | 12 Mornington Rd | London | LDN | NW1 2JE | UK | 1800 | 18.9 | 2022-09-12 | 2024-03-12 | active | blank | 920 | 1 | 2024-04-01 |
| LN000010 | home | 240 | false | employed | BR10010 | John Murphy | 1979-05-25 | male | 93000 | 812 | 78 Highfield Ave | Dublin | DN | D08X7F8 | Ireland | 245000 | 3.2 | 2021-06-14 | 2041-06-14 | active | blank | 41000 | 0 | 2024-05-01 |
| LN000011 | business | 48 | false | self-employed | BR10011 | Olga Petrova | 1985-03-16 | female | 210000 | 673 | 7 Tverskaya St | Moscow | MOW | 125009 | Russia | 120000 | 11.2 | 2020-01-19 | 2024-01-19 | closed | blank | 137500 | 0 | 2024-01-19 |
| LN000012 | personal | 6 | false | retired | BR10012 | Carlos Fernandez | 1968-02-28 | male | 8000 | 388 | Calle 22 Sur | Mexico City | CDMX | 06760 | Mexico | 3500 | 28.7 | 2023-10-11 | 2024-04-11 | delinquent | blank | 500 | 2 | 2024-02-15 |
| LN000013 | auto | 36 | false | employed | BR10013 | Chloe Martin | 1990-03-09 | female | 54000 | 657 | 31 Rue Lafayette | Paris | IDF | 75009 | France | 15500 | 7.1 | 2022-10-03 | 2025-10-03 | active | blank | 4100 | 0 | 2024-05-01 |
| LN000014 | home | 60 | false | employed | BR10014 | Wang Li | 1981-07-15 | male | 51000 | 722 | 88 Nanjing Rd | Shanghai | SH | 200003 | China | 92000 | 6.9 | 2022-11-20 | 2027-11-20 | active | blank | 18450 | 0 | 2024-05-01 |
| LN000015 | business | 36 | false | self-employed | BR10015 | Maria Silva | 1972-05-30 | female | 93000 | 683 | Rua das Flores 210 | Sao Paulo | SP | 01303-000 | Brazil | 32000 | 10.8 | 2021-05-05 | 2024-05-05 | closed | blank | 39500 | 0 | 2024-05-05 |
| LN000016 | auto | 24 | false | employed | BR10016 | Fatima Hassan | 1994-04-07 | female | 57000 | 647 | 23 Sheikh Zayed Rd | Dubai | DXB | 00000 | UAE | 11000 | 6.1 | 2022-03-15 | 2024-03-15 | active | blank | 4800 | 0 | 2024-05-01 |
| LN000017 | auto | 72 | false | employed | BR10017 | David White | 1988-12-13 | male | 72000 | 702 | 59 Elm Street | Boston | MA | 02110 | USA | 31000 | 5.2 | 2021-09-17 | 2027-09-17 | active | blank | 8700 | 0 | 2024-05-01 |
| LN000018 | auto | 48 | false | employed | BR10018 | Julia Rossi | 1982-08-02 | female | 69000 | 667 | Via Roma 28 | Rome | RM | 00184 | Italy | 18000 | 7.9 | 2022-08-24 | 2026-08-24 | active | blank | 5600 | 0 | 2024-05-01 |
| LN000019 | personal | 24 | false | employed | BR10019 | Samuel Park | 1995-04-16 | male | 43000 | 640 | 402 Gangnam-daero | Seoul | KR | 06130 | South Korea | 8000 | 8.7 | 2022-05-01 | 2024-05-01 | closed | blank | 9200 | 0 | 2024-05-01 |
| LN000020 | business | 36 | false | self-employed | BR10020 | Ahmed Khalil | 1984-10-25 | male | 115000 | 758 | 16 Al Haram St | Giza | GZ | 12561 | Egypt | 27000 | 10.2 | 2022-09-30 | 2025-09-30 | active | blank | 9000 | 0 | 2024-05-01 |
What the 200 rows show
from the 200-row sampleHome (loan purpose) stands out: mean loan_
- 5%loan_
default_ flag = true - 36median loan_
term_ months - 4borrower genders
- 4loan statuses
- 45borrower address countries
- 52,400median borrower_
annual_ income
Median 36, from 1 to 360.
- string 12
- integer 3
- float 4
- date 5
- boolean 1
Columns
25 columns in four groups| column | type | description | example |
|---|---|---|---|
| Text 12 columns | |||
loan_id | string | Unique identifier for each loan issuedunique | LN000001 |
borrower_id | string | Unique identifier for each borrower | BR10001 |
borrower_name | string | Full name of the borrower | Jacob Thompson |
borrower_gender | string | Gender of the borrowermale · female · other · prefer_not_to_say · optional | male |
borrower_employment_status | string | Current employment status of the borroweremployed · self-employed · unemployed · student · retired | employed |
borrower_address_street | string | Street address of the borroweroptional | 1429 Maple Ave |
borrower_address_city | string | City of the borrower's addressoptional | Houston |
borrower_address_state | string | State or province of the borrower's addressoptional | TX |
borrower_address_postal_code | string | Postal code of the borrower's addressoptional | 77002 |
borrower_address_country | string | Country of the borrower's addressoptional | USA |
loan_purpose | string | Purpose for which the loan was taken6 values · optional | home |
loan_status | string | Current status of the loanactive · closed · defaulted · delinquent | active |
| Numbers 7 columns | |||
borrower_annual_income | float | Annual income of the borrower in local currency0 or more | 82000 |
borrower_credit_score | integer | Credit score of the borrower at the time of loan application300 to 850 | 692 |
loan_amount | float | Total amount of the loan issued0 or more | 260000 |
loan_term_months | integer | Duration of the loan in months1 or more | 180 |
loan_interest_rate | float | Annual interest rate applied to the loan (%)0 to 100 | 4.9 |
loan_total_payments_made | float | Total amount paid by the borrower towards the loan0 or more · optional | 36000 |
loan_number_of_payments_missed | integer | Number of scheduled payments missed by the borrower0 or more · optional | 0 |
| Dates and times 5 columns | |||
borrower_dob | date | Date of birth of the borrower | 1987-09-04 |
loan_issue_date | date | Date the loan was issued | 2020-07-20 |
loan_maturity_date | date | Date the loan is scheduled to be fully repaid | 2035-07-20 |
loan_default_date | date | Date the loan was marked as defaulted (if applicable)optional | 2024-04-15 |
loan_last_payment_date | date | Date of the most recent payment made on the loanoptional | 2024-05-01 |
| True or false 1 column | |||
loan_default_flag | boolean | Indicates whether the loan has defaulted (true/false) | false |
15 SQL practice questions for the Loan Default Prediction Dataset
Written for this data and checked against it: 12 SQL and 3 Power BI exercises from beginner to advanced. Try the first three free; the practice kit has all 15, a starter .sql file and an answer key with every expected result.
Distinct loan purposes
Return each distinct loan_purpose found in the data, sorted alphabetically. The result should have one column: loan_purpose.
Tables: loan_default_prediction_dataset · your result: 1 columns, 5 rowsLoan rows per status
Count the rows for each loan_status. Return the columns loan_status and loan_count, sorted by loan_count descending and then by loan_status ascending.
Tables: loan_default_prediction_dataset · your result: 2 columns, 4 rowsAverage loan amount by purpose
For each loan_purpose, return loan_purpose, avg_amount (the average loan_amount rounded to 2 decimals) and total_amount (the sum of loan_amount rounded to 2 decimals). Sort by loan_purpose ascending.
Tables: loan_default_prediction_dataset · your result: 3 columns, 5 rows
- 04High-income employed borrowersBeginner
- 05Defaults by employment status tablePower BI
- 06Purposes with many missed paymentsIntermediate
- 07Credit score bandsIntermediate
- 08Loans above average amountIntermediate
- 09Issue year cohortsIntermediate
- 10Country vs overall average incomePower BI
- 11Rank loans by amount within purposeAdvanced
- 12Running total of defaulted loan amountsAdvanced
- 13Share of loan volume by purposeAdvanced
- 14Gap between consecutive home loan datesAdvanced
- 15Interest rate anomalies by purposePower BI
Get the practice kit: the full dataset, all 15 exercises, a starter .sql and the answer key. One-time $3.99.
Get the practice kit · $3.99Use it for
A finance dashboard
The loan_
default_ flag rate, loan_ term_ months by loan_ purpose and a breakdown of borrower_ employment_ status. Excel, Power BI or Tableau. Why do the 28 home rows have a mean loan_
term_ months of 210.0? A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Loans200LN000001180homeLN0000346personalLN3000143personal
A software demo
Believable loans with borrower_
id, borrower_ name and borrower_ dob to fill a screen in front of a buyer.
blueprint · loan-default-prediction-dataset
Behind this dataset
Same schema. As many rows as you need.
These 200 rows came out of a blueprint — 25 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.
- Log borrower income and history
- Include loan type and amount
- Record payment schedule adherence
- Flag high-risk applicants
1 credit per row. Preview 20 rows free. Buy rows for the full run.
- Exports
- CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
- Licence
- yours to use, including commercially
- API slug
- loan-default-prediction-dataset