A people analytics specialist runs a pay equity analysis on two monitors showing abstract charts in a calm office.

Oaxaca-Blinder Decomposition: Explained vs Unexplained Pay Gap, Step by Step

How the Oaxaca-Blinder decomposition splits a gender pay gap into explained and unexplained parts, and how to use it in a pay equity audit.

The Oaxaca-Blinder decomposition splits the average pay gap between two groups into two parts. The explained part comes from differences in pay-relevant characteristics, such as level or experience. The unexplained part comes from differences in how those characteristics are rewarded, plus anything the model does not capture.

That makes it more useful than a single gap figure: it tells you why a gap exists, not only how big it is. But the unexplained part is a signal to investigate, not proof of discrimination. This guide explains how the method works in plain words, walks through a worked example, covers the main choices and limitations, and shows where decomposition fits in a pay equity audit.

What the Oaxaca-Blinder decomposition is

The decomposition was developed independently in 1973 by Ronald Oaxaca and Alan Blinder. Oaxaca's paper, "Male-female wage differentials in urban labor markets", appeared in the International Economic Review, and Blinder's paper, "Wage discrimination: reduced form and structural estimates", appeared in the Journal of Human Resources. Both set out to understand why average wages differ between groups. You will see the method called both the Oaxaca-Blinder and the Blinder-Oaxaca decomposition; they are the same thing.

According to Jann (2008), writing in the Stata Journal, it is a counterfactual decomposition technique, widely used to study mean outcome differences between groups, and often used to analyse wage gaps by sex or race. It divides the wage differential between two groups into a part that is "explained" by group differences in productivity characteristics, such as education or work experience, and a residual part that cannot be accounted for by those differences.

The two parts go by several names in the literature:

  • The explained part is also called the composition effect or the endowments effect. It reflects differences in what each group brings or where each group sits, such as level, job family or experience.
  • The unexplained part is also called the structural effect or the coefficients effect. It reflects differences in how the same characteristics are rewarded for each group, plus the influence of anything the model leaves out.

In a pay equity context, the two groups are usually men and women, although the same approach can be used for other characteristics where an employer has the data and a lawful basis to analyse it.

The decomposition is closely related to the adjusted pay gap. Both ask what difference remains once legitimate factors are taken into account. The adjusted gap usually gives you one number for what remains; the decomposition shows that number alongside the part that is explained, and can break the explained part down factor by factor. Depending on the method used, the unexplained part and an adjusted gap from a separate regression can be similar but not identical, so always say which measure you are reporting.

How it works, in plain words

You do not need to follow the mathematics to use the decomposition well, but you do need to understand the logic.

Step 1: build a pay model. The analyst fits a regression model that relates pay, such as the logarithm of hourly pay or hourly pay itself, to the factors that should legitimately affect it, such as level, job family, location and time in role. A model is estimated for each group, so you can see how each group's pay responds to those factors.

Step 2: ask a counterfactual question. The key question is: what would the gap be if both groups were paid under the same pay structure? To answer it, the method chooses a reference pay structure, which is a single set of "prices" for each characteristic, and uses it to value both groups' characteristics.

Step 3: split the gap. Any part of the gap that comes from the groups having different characteristics, valued at the reference pay structure, is the explained part. Any part that comes from the groups being paid differently for the same characteristics is the unexplained part.

In its simplest, twofold form, the result can be written as:

Total gap = Explained part + Unexplained part

Here is what each term means:

  • Total gap is the difference in average pay between the two groups, for example men's average hourly pay minus women's average hourly pay.
  • Explained part is the share of that difference that comes from differences in the groups' characteristics, such as more men in senior levels, valued at the reference pay structure.
  • Unexplained part is the share that remains: differences in how each group's characteristics are rewarded, plus the effect of any pay-relevant factors the model does not include.

A simple way to picture it: imagine giving everyone the same pay rules. If a gap still appears because one group is more concentrated in higher levels, that is explained. If a gap appears because one group is paid less for the same level, job family and time in role, that is unexplained.

A note on the pay measure. Analysts often model the logarithm of hourly pay rather than hourly pay itself, because pay differences tend to be proportional: the same dollar difference means more at lower pay than at higher pay. Results from a log model are usually read as percentage differences. Whichever measure you use, state it clearly, use hourly pay to remove the effect of part-time work, and keep the same measure from year to year.

The decomposition can be run in common statistical software. In Stata, there is the oaxaca command by Ben Jann, introduced in his 2008 Stata Journal article. In R, the oaxaca package uses the same estimation procedures as the Stata module and calculates standard errors by bootstrapping.

An illustrative graphic shows one pay gap bar split into an explained segment and an unexplained segment

Twofold vs threefold, and the reference group

There are two main variants of the decomposition, and one important choice that affects both.

The two variants

According to Jann (2008), the threefold decomposition divides the gap into three parts: an endowments effect, which reflects differences in the predictors; a coefficients effect, which reflects differences in how the predictors are rewarded; and an interaction term, which captures the fact that differences in characteristics and differences in rewards can occur together.

The twofold decomposition divides the gap into an explained and an unexplained part, using a reference pay structure, which the literature sometimes calls a "non-discriminatory" structure. One common choice is a pooled model estimated over both groups together. In practice, the twofold version is easier to explain to non-specialists, because it gives two parts that add up to the total.

Aspect

Twofold

Threefold

Parts

Explained and unexplained

Endowments, coefficients and interaction

Key choice

The reference pay structure, for example a pooled model

How to interpret the interaction term

Ease of explanation

Easier for leadership and HR audiences

Harder, because the interaction term needs explaining

Main use

Practical pay equity reporting and diagnosis

Detailed analysis of how differences combine

Main watch-out

Results depend on the reference structure chosen

The interaction term can be hard to interpret

The reference group problem

IZA World of Labor (2017) describes what is known as the index number problem. The overall gap stays the same whichever group is used as the reference, but the split between the explained and unexplained parts changes. In other words, valuing characteristics at men's pay structure or at women's pay structure can give different answers about how much of the gap is explained.

The remedies it describes include using the same reference group consistently, or using a non-discriminatory structure modelled as a weighted average of both groups' structures. Results with such weights fall between the two single-group results.

The practical recommendation is simple: choose one approach, document it and keep it consistent from year to year. For many audits, a twofold decomposition with a pooled reference structure is a sensible default, because it uses both groups' data and gives a clear split. If you change the approach, rerun previous years with the new approach before comparing results.

Worked example: one gap, decomposed

Here is how a decomposition might look for a single company. All figures are illustrative. They are not a benchmark or a typical result.

Step 1: measure the raw gap

A hypothetical company compares men's and women's mean hourly pay. Men's mean hourly pay is $40.00 and women's is $34.00. The raw gap is $40.00 − $34.00 = $6.00 an hour, which is $6.00 ÷ $40.00 × 100 = 15.0% of men's pay.

Step 2: run the twofold decomposition

The company's analyst runs a twofold decomposition with a pooled reference structure, using level, job family and tenure in role as the factors. The result splits the $6.00 gap into two parts.

Component

Illustrative amount per hour

Share of the gap

Explained part

$4.20

70%

Unexplained part

$1.80

30%

Total gap

$6.00

100%

Caption: Illustrative figures only for a hypothetical company, using a twofold decomposition with a pooled reference structure. They are not a benchmark or a typical result.

The explained part of $4.20 is 70% of the $6.00 gap: it comes from differences in where men and women sit, valued at the pooled pay structure. The unexplained part of $1.80 is 30%: it is the difference that remains between men and women with the same level, job family and tenure in role.

Step 3: break down the explained part

The analyst then looks at the detailed breakdown of the explained part, to see which factors contribute most. Level and job family are categorical factors, so each figure below is that factor's total contribution across all its categories.

Factor

Illustrative contribution per hour

What it suggests

Level

$3.00

Men are more concentrated in senior levels

Job family

$0.90

Men are more concentrated in higher-paid job families

Tenure in role

$0.30

Small differences in time in role

Total explained

$4.20

Caption: Illustrative figures only. Each categorical factor is shown as its total across all categories. They are not a benchmark or a typical result.

Level accounts for $3.00, which is half of the total $6.00 gap. Job family accounts for $0.90, or 15% of the gap, and tenure in role for $0.30, or 5% of the gap. Together, they make up the $4.20 explained part.

An illustrative graphic shows the explained part of a pay gap broken into level, job family and tenure in role.

Step 4: what it means for leadership

For leadership, the decomposition tells a clearer story than the raw 15.0% alone. Most of the gap, the $4.20 explained part, comes from where men and women sit in the organisation, especially level. That points to a representation and progression issue: fewer women reach senior levels. The remaining $1.80 unexplained part says that, among people with the same level, job family and tenure in role, women are still paid less on average, and the model does not explain why.

Step 5: what the company does next

The company takes three actions. First, it looks at progression into senior levels: promotion rates, promotion criteria and succession plans, to understand why fewer women reach them. Second, it investigates the $1.80 unexplained part by group and by individual, to find where it comes from and fix differences that cannot be justified. Third, it tests the model with and without level as a factor. If promotions have been biased, treating level as a legitimate factor may be hiding part of the problem, so the company wants to see how the split changes when level is removed.

Choosing the factors in your model

The factors you include decide what counts as explained. That makes factor choice the most important judgement in the whole exercise.

Factors commonly treated as legitimate

Many pay equity analyses include factors such as:

  • Level or grade, because more senior roles carry more responsibility and higher pay
  • Job family or function, because different types of work have different market rates
  • Location, because pay varies between cities and countries
  • Tenure in role, because time in a role can affect where someone sits in a range
  • Relevant experience, because prior experience can justify higher pay

Each factor should be job-related, measured reliably and applied consistently across employees.

Factors that need caution

Some factors may themselves reflect bias, and including them can explain away the very problem you are trying to find. This is a matter of practical judgement for the analyst, and it is worth discussing openly with HR and legal colleagues.

  • Level or grade is usually treated as legitimate, but if promotions have been biased, level can carry that bias into the model. In the worked example, level explains half the gap, which is why the company tests the model without it.
  • Starting pay can reflect past negotiation or previous employers' pay rather than the value of the job.
  • Performance ratings can reflect manager bias, especially where rating processes are not calibrated.

The trade-off

Adding a factor that may carry bias usually shrinks the unexplained part, because more of the gap is attributed to that factor. That can make results look better while hiding a problem. Leaving it out can make the unexplained part larger, but may attribute to "unexplained" some differences that have a legitimate basis.

The practical answer is to test results with and without each cautious factor, report the difference, and document why you chose your final model. Take legal advice on which factors you can rely on, because the treatment of explanatory factors may differ between countries and contexts.

Document every choice

Keep a short record of each factor: what it measures, where the data comes from, why it is job-related, and any concern that it may carry bias. Record which factors you tested and how the results changed. This record makes the analysis easier to repeat next year, easier to explain to leadership, and easier to defend if your approach is ever questioned.

How to read the results

A decomposition is easy to run and easy to misread. These points help you interpret it carefully.

What the explained part tells you. The explained part shows how much of the gap comes from differences in characteristics, such as representation in senior levels or in higher-paid job families. It is not "fine" just because it is explained. A large explained part driven by level can point to a progression or representation problem that deserves action.

What the unexplained part does and does not mean. According to Jann (2008), the unexplained part is often used as a measure of discrimination, but it also includes the effects of group differences in unobserved predictors. IZA World of Labor (2017) adds that decompositions have no causal interpretation, because characteristics such as gender cannot be manipulated; they are accounting exercises based on correlations. So a sizable unexplained part is a reason to investigate, not a finding of discrimination on its own.

Why detailed results for categorical factors need care. IZA World of Labor (2017) notes that for categorical factors, such as levels or job families, detailed results depend on which category is omitted from the model. Results are only comparable when the same omitted category is used, or when they are aggregated across all categories. Report categorical factors as totals, as in the worked example, unless you have a good reason to break them down.

Statistical uncertainty. In small samples, both parts can move a lot from one year to the next because of a few people joining or leaving. Ask your analyst for standard errors or confidence ranges, which software such as the R oaxaca package can estimate by bootstrapping, and avoid strong conclusions from small or uncertain results.

Explaining it to non-specialists. Most leaders will not need the method, only the message. A simple framing works well: "Of our total gap, most comes from where men and women sit in the organisation, and a smaller part remains among people in comparable roles." Then name the main drivers of the explained part and say what you are doing about the unexplained part. Avoid technical labels such as "endowments" in leadership material, and always mention that the unexplained part is a reason to investigate, not a verdict.

Turning results into actions. Translate each result into a question and an owner. A large level contribution leads to a review of promotions. An unexplained part leads to a group and individual investigation. A result that changes a lot when a factor is removed leads to a closer look at that factor. When you present findings, keep the message simple and focused on decisions; our guide to presenting pay equity results to leadership covers how to frame them.

Limitations and common pitfalls

The decomposition is a powerful diagnostic, but it has real limits. IZA World of Labor (2017) lists several, and practitioners add a few more.

Reading the unexplained part as discrimination

The unexplained part includes unobserved differences and is not causal. Treat it as a measure of what the model cannot explain, and investigate before drawing conclusions.

Reference group choice

The split between explained and unexplained parts changes with the reference structure, even though the total gap does not. Choose one approach, document it and keep it consistent.

Omitted or unobserved factors

IZA World of Labor (2017) notes that unobservables that differ by group bias the structural effect. If a pay-relevant factor is missing from the model, its effect ends up in the unexplained part.

Using factors that carry bias

Factors such as level, starting pay or performance ratings may reflect past bias. Including them can shrink the unexplained part while hiding a problem. Test with and without them.

Small groups and noisy estimates

With few employees, estimates can be unstable. Combine comparable groups where it makes sense, report uncertainty, and use individual reviews for small populations.

Linear model assumptions

IZA World of Labor (2017) notes that results depend on the linear model and its specification, that selection, such as who is in the workforce, can bias results, and that the method is partial-equilibrium. Different but reasonable model choices can give different splits.

Comparing results across years or companies with different models

A change in the factors, the reference structure or the pay measure can change the split even if pay has not changed. Only compare results produced with the same approach, and rerun earlier years when you change it.

Confusing a company-level decomposition with individual pay decisions

The decomposition describes average differences across groups. It does not tell you whether a particular person is paid fairly. Individual pay reviews and remediation need individual-level analysis.

Where it fits in audits and pay gap reporting

Decomposition is one tool in a wider pay equity toolkit, and it helps to be clear about what it is for.

A diagnostic for the organisation or large groups. The decomposition is best used to understand the drivers of a gap across the whole organisation or across large groups, such as a country or a business unit. It shows how much of the gap comes from representation and how much remains within comparable characteristics. Individual pay reviews and remediation, by contrast, need individual-level analysis, such as comparing each person's pay with what the model predicts for their role.

Statutory pay gap reports use unadjusted figures. Pay gap reporting rules in places such as the UK and Ireland are built on unadjusted, organisation-wide figures. A decomposition does not replace those figures. It can, however, help you explain them, for example by showing how much of the reported gap comes from representation in senior levels.

Context under the EU Pay Transparency Directive. According to the Council of the EU, employers must take action through a joint pay assessment if a reported gender pay gap above 5% cannot be justified by objective, gender-neutral criteria. The Directive does not prescribe the Oaxaca-Blinder decomposition or any specific statistical method. Decomposition can be one analytical tool that helps an employer understand which factors explain a gap, but how gaps must be justified depends on national rules, so take legal advice. Our EU Pay Transparency Directive guide explains the wider requirements.

Acting on what you find. A decomposition tells you where to look; lasting improvement comes from everyday pay decisions. Consistent pay ranges and governed approvals help both the explained and unexplained parts shrink over time, by supporting fair progression and consistent pay for comparable work. For example, Tallect brings a pay ranges builder that combines internal data and external market data, analytics for increment, promotion and hiring decisions, and compensation planning with custom routing and approval rules into one total rewards platform.

An analyst walks two colleagues through pay gap results on a laptop at a meeting table

A checklist for your first decomposition

Use this checklist to plan and document your first decomposition. Involve a statistician or experienced analyst, and agree the approach with HR and legal before you run it.

Step

What to do

What to document

1. Define the groups and pay measure

Choose the two groups and the pay measure, such as hourly base pay or total cash

The groups, pay measure and snapshot date

2. Prepare clean data

Combine HR and pay data, fix errors and standardise pay

Data sources and every correction made

3. Choose and document factors

Select legitimate factors and flag cautious ones

Each factor, its business reason and any concerns

4. Choose the variant and reference structure

Decide on twofold or threefold, and the reference structure

The choice and why, for consistency in later years

5. Run the decomposition

Use statistical software such as Stata or R

Software, settings and model specification

6. Check uncertainty

Review standard errors or confidence ranges

Which results are stable and which are uncertain

7. Test sensitivity

Rerun with and without cautious factors

How the split changes and what that suggests

8. Review with legal and HR

Discuss results, interpretation and next steps

Advice received and decisions taken

9. Decide actions

Assign actions on representation and unexplained differences

Owners, timelines and how progress will be tracked

Frequently asked questions

What is the Oaxaca-Blinder decomposition in simple terms?

It is a statistical method that splits the average pay gap between two groups into two parts. The explained part comes from differences in characteristics, such as level or experience. The unexplained part comes from differences in how those characteristics are rewarded, plus anything the model leaves out. It was developed independently by Ronald Oaxaca and Alan Blinder in 1973 and is widely used to study wage gaps.

What is the difference between the explained and unexplained pay gap?

The explained pay gap is the part of the difference in average pay that comes from groups having different characteristics, such as more men in senior levels. The unexplained pay gap is the part that remains when those characteristics are valued the same way for both groups. It reflects differences in how characteristics are rewarded, plus the effect of factors the model does not include.

Does the unexplained pay gap mean discrimination?

Not on its own. The unexplained part is often used as a measure of discrimination, but, as Jann (2008) notes, it also includes the effects of unobserved differences between groups. IZA World of Labor (2017) adds that decompositions are not causal. A sizable unexplained part is a strong signal to investigate groups and individuals, ideally with legal advice, rather than a finding in itself.

What is the difference between twofold and threefold decomposition?

A twofold decomposition splits the gap into an explained and an unexplained part, using a chosen reference pay structure, such as a pooled model. A threefold decomposition splits it into an endowments effect, a coefficients effect and an interaction term that captures both differences occurring together. The twofold version is usually easier to explain to leadership, while the threefold version shows how the differences combine.

Which group should be the reference group?

There is no single correct choice. The total gap stays the same, but the split between explained and unexplained parts changes depending on the reference. Many analysts use a pooled or weighted structure based on both groups, which gives results between the two single-group options. Whatever you choose, document it and keep it consistent from year to year, with advice from a statistician.

Is the unexplained gap the same as the adjusted pay gap?

They are closely related but not always identical. Both describe the difference that remains after accounting for legitimate factors. Depending on the method, reference structure and factors used, the unexplained part of a decomposition and an adjusted gap from a separate regression can differ. When you report either, say which measure you used and how it was calculated.

How many employees do you need for a decomposition?

It depends. The number needed varies with how many factors you include, how many categories each factor has, how evenly the two groups are spread across them, and how precise you need the results to be. Small groups produce unstable estimates. Ask a statistician to review your data and model, check the uncertainty of your results, and use individual reviews where groups are small.

Do regulators require the Oaxaca-Blinder decomposition?

The sources we reviewed do not show any regulator requiring it. Under the EU Pay Transparency Directive, for example, employers must be able to justify certain gaps with objective, gender-neutral criteria, but the Directive does not specify a statistical method. Decomposition can help you understand which factors explain a gap. Requirements vary by country, so take legal advice on what analysis you need.

Act on what your pay gap analysis shows

Tallect connects pay ranges, data-driven increment and promotion decisions, and governed approvals in one total rewards platform, so audit findings shape everyday pay.

A Tallect graphic reads Act on What Your Pay Gap Analysis Shows, with a Book a Demo button

Chandni Aggarwal

Read Next