Employee Attrition Prediction Dataset

This dataset provides detailed HR records for employees, including demographics, job history, satisfaction, performance, and attrition status. It is ideal for building predictive models to identify turnover risks, analyze workforce trends, and inform retention strategies. Rich features enable advanced analytics for HR decision-making and organizational planning.

  • opened 26 times
  • last updated 12 Jul 2025
  • by GoMask
The brief that made it

Predicting employee attrition and turnover risk

Sample rows

preview · 8 of 200 rows · all 26 columns
employee_idstringemployment_statusstringsatisfaction_levelfloatattritionbooleaneducation_levelstringfirst_namestringlast_namestringgenderstringdate_of_birthdatemarital_statusstringjob_rolestringdepartmentstringmanager_idstringhire_datedatetermination_datedatetenure_yearsfloatlast_performance_scorefloatnum_promotionsintegeraverage_monthly_hoursfloatsalaryfloatsalary_gradeintegerwork_location_citystringwork_location_statestringwork_location_countrystringhas_training_completedbooleannum_projectsinteger
E0001Active0.92falseMasterRiyaPatelFemale1987-03-11MarriedFinance ManagerFinanceblank2012-08-01blank11.84.73168970006MumbaiMHIndiatrue18
E0002Active0.76falseBachelorCarlosDominguezMale1992-07-25SingleData AnalystData ScienceE00302019-05-14blank43.61146500003MadridMDSpaintrue6
E0003Active0.98falseMasterAishaOkaforFemale1970-09-02WidowedDirector of EngineeringEngineeringblank1994-06-15blank29.94.971922050008LagosLANigeriatrue29
E0004Active0.93falseDoctorateSung-hoKimMale1980-05-16MarriedLead Data ScientistData ScienceE00032008-11-23blank15.54.841781230007Seoul11South Koreatrue21
E0005Active0.84falseBachelorOlgaIvanovaFemale1977-01-29DivorcedQA SpecialistQualityE00282013-04-03blank10.942155690004MoscowMOWRussiatrue13
E0006Active0.68falseBachelorLucasMoreiraMale1998-12-06SingleMarketing AssociateMarketingE00152022-01-17blank1.93.20132340002Sao PauloSPBrazilfalse3
E0007Active0.97falseMasterFatimaEl-SayedFemale1982-10-13MarriedHR DirectorHuman Resourcesblank2010-03-05blank13.94.951881170007CairoCEgypttrue23
E0008Retired0.93trueHigh SchoolDavidSmithMale1969-08-01WidowedSenior Logistics CoordinatorLogisticsE00251996-02-122023-06-3027.44.26136640005HoustonTXUSAtrue18

What the 200 rows show

from the 200-row sample

Retired (employment status) stands out: 19 of its 19 rows have attrition = true, against 8 of 181 for the rest.

  • 14%attrition = true
  • 0.80median satisfaction_level
  • 5genders
  • 5marital statuses
  • 11departments
  • 55work location countries
Attrition rate by employment_statusattrition = true
0%50%100%0%Active0 of 170100%Termin…3 of 3100%Resign…5 of 5100%Retired19 of 190%On Lea…0 of 3
satisfaction_level200 rows, in bands of 0.1
03060346266058430.30.71satisfaction_level →

Median 0.80, from 0.32 to 0.99.

education_level198 rows with a value · 2 left blank
  1. Bachelor103
  2. Master42
  3. Other24
  4. High School13
  5. Associate11
  6. Doctorate5
26 columns by typefrom the column list below
  • string 13
  • integer 3
  • float 5
  • date 3
  • boolean 2

Columns

26 columns in four groups
blueprint · 26 columns
columntypedescriptionexample
Text 13 columns
employee_idstringUnique identifier for each employeeuniqueE0001
first_namestringEmployee's first nameRiya
last_namestringEmployee's last namePatel
genderstringEmployee's genderMale · Female · Non-binary · Other · Prefer not to sayFemale
marital_statusstringEmployee's marital statusSingle · Married · Divorced · Widowed · Other · optionalMarried
education_levelstringHighest level of education attained by the employee6 values · optionalMaster
job_rolestringEmployee's job role or titleFinance Manager
departmentstringDepartment where the employee works11 departmentsFinance
manager_idstringEmployee ID of the manager to whom this employee reportsoptionalE0030
employment_statusstringCurrent employment statusActive · Terminated · Resigned · Retired · On LeaveActive
work_location_citystringCity where the employee is basedoptionalMumbai
work_location_statestringState or province of the work locationoptionalMH
work_location_countrystringCountry of the work locationoptionalIndia
Numbers 8 columns
tenure_yearsfloatNumber of years the employee has worked at the company0 or more11.8
satisfaction_levelfloatEmployee's job satisfaction level (0.0 to 1.0)0 to 10.92
last_performance_scorefloatMost recent performance evaluation score (0.0 to 5.0)0 to 54.7
num_promotionsintegerNumber of promotions received by the employee0 or more · optional3
average_monthly_hoursfloatAverage number of hours worked per month0 or more · optional168
salaryfloatCurrent annual salary of the employee in local currency0 or more · optional97000
salary_gradeintegerSalary grade or band assigned to the employee1 or more · optional6
num_projectsintegerNumber of projects the employee has participated in0 or more · optional18
Dates and times 3 columns
date_of_birthdateEmployee's date of birth1987-03-11
hire_datedateDate when the employee was hired2012-08-01
termination_datedateDate when the employee left the company (null if still employed)optional2023-06-30
True or false 2 columns
has_training_completedbooleanIndicates if the employee has completed required trainingoptionaltrue
attritionbooleanTarget variable: true if the employee has left the company, false otherwisefalse

Use it for

  • attrition14%27 of 200 rowsmean satisfaction lev…0.80Acti…0.34Term…0.45Resi…0.93Reti…

    A human resources dashboard

    The attrition rate, satisfaction_level by employment_status and a breakdown of education_level. Excel, Power BI or Tableau.

  • Why do 27 of 200 rows have attrition = true?

    A root-cause class exercise

    Hand out the rows and one question. The answer is in the data, not in the brief.

  • A software demo

    Believable employees with first_name, last_name and gender to fill a screen in front of a buyer.

Not quite right?

Make it yours.

Same 26 columns, your size and your rules. See 20 rows before you pay.

Preview 20 rows free

10,000 rows of yours: $12.99One-time. No subscription. All prices

This dataset200 rows26 columns
Yours10,000 rows26 columnswork_location_city: UK only

blueprint · employee-attrition-prediction-dataset

Behind this dataset

Same schema. As many rows as you need.

These 200 rows came out of a blueprint — 26 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.

Rules it was built with
  • Employees with less than 3 months tenure excluded
  • Salary and performance ratings anonymized
  • Resignations and terminations differentiated
  • Department identifiers standardized
Rows
Open the blueprint in Data Factory

1 credit per row. New accounts start with 25 free credits.

Exports
CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
Licence
yours to use, including commercially
API slug
employee-attrition-prediction-dataset

What should your data show?

Preview 20 rows free
No signup. No card.