Economic FoundationsUnderstanding Economic Models

Endogenous vs Exogenous Variables. What a Model Explains and What It Takes as Given

Every model draws a line between the outcomes it explains and the outside forces it takes as given. This guide shows how to draw that line, why it depends on the question, and how mistakes about it distort conclusions about cause and effect.

Core idea

Endogenous variables are explained, exogenous ones are taken as given

Key caution

A variable treated as given may secretly respond to the outcome

Investor angle

Inputs like rates and growth are uncertain and move many holdings at once

What the model explains and what it takes as given

A wheat farmer in Saskatchewan decides how many acres to plant, how much fertilizer to buy and when to harvest. Her choices respond to the price she expects for wheat, the cost of fuel and fertilizer, and the weather. Some of these she can influence through her own decisions. Others, like a summer drought or a change in world wheat prices, arrive from outside and she must simply respond. Any model of her farm has to draw a line between the two. Economists call the variables a model explains endogenous variables, and the forces it takes as given exogenous variables.

The distinction sounds technical, but it shapes almost every economic argument. When a news report says higher interest rates caused house prices to fall, it treats interest rates as the outside force and house prices as the outcome. When someone argues that rising house prices pushed the central bank to raise rates, the direction reverses. Which variables are treated as given and which are explained changes the story a model can tell, and getting it wrong can lead to badly mistaken conclusions.

This guide explains what endogenous and exogenous variables are, how to tell them apart, why the classification depends on the question and the model, and what goes wrong when the line is drawn carelessly. It builds on Choosing a Model for a Question and Economic Models.

Defining endogenous and exogenous variables

An endogenous variable is determined inside the model. Its value comes out of the relationships the model describes. An exogenous variable is determined outside the model. Its value is fed in, and the model shows how endogenous variables respond to it.

DefinitionEndogenous variables are the outcomes a model explains, determined by the relationships inside it. Exogenous variables are inputs taken as given, set outside the model, whose changes the model uses to explain movements in the endogenous variables.

The words come from Greek roots meaning generated within and generated outside. In a simple model of a local apple market, the price of apples and the quantity sold are endogenous: they are determined where buyers and sellers meet. The weather during the growing season, the number of households in town and the price of pears in other regions might be exogenous: the model takes them as given and asks how the apple market responds when they change.

A useful test is to ask: does this model contain an explanation of why this variable takes the value it does? If yes, it is endogenous in that model. If the model simply assumes a value and works out the consequences, it is exogenous.

It also helps to separate exogenous variables from choice variables. A choice variable is something a decision maker controls, such as the price a seller sets or the hours a worker offers. In a model of that decision maker’s behaviour, choice variables are typically endogenous, because the model explains how they are chosen. In a model of how customers respond to a price, the same price can be treated as given. Keeping track of who controls each variable, and whose behaviour the model is describing, avoids much confusion.

A worked example: a farmers’ market for strawberries

Consider a simple model of strawberry sales at a weekend farmers’ market. The figures are illustrative. Shoppers buy fewer baskets when the price rises, and farmers bring more baskets when the price they expect is higher. The weather during the growing season affects how many berries farmers can pick.

Worked example · Solving for the endogenous variables

Shoppers’ demand: baskets bought = 600 − 50 × price.

Farmers’ supply in a normal season: baskets offered = 100 + 50 × price.

Setting demand equal to supply: 600 − 50P = 100 + 50P, so 100P = 500 and P = $5. Baskets sold = 600 − 250 = 350.

Now an exogenous change arrives: a cold, wet spring cuts supply by 100 baskets at every price, so supply becomes 50P.

New balance: 600 − 50P = 50P, so P = $6 and baskets sold = 300.

The price and quantity are endogenous: the model explains them. The weather is exogenous: the model takes it as given and shows its effect, a price rise of $1 and 50 fewer baskets sold.

Endogenous vs exogenous variables example: supply and demand chart showing a cold spring shifting strawberry supply left, raising the price from $5 to $6
The exogenous weather shock shifts supply, and the model solves for the new endogenous price and quantity.

The example shows the typical structure. Exogenous variables shift the relationships, and the model then solves for the new values of the endogenous variables. The logic of finding where the relationships balance is developed in Equilibrium vs Adjustment.

The classification depends on the model and the question

No variable is endogenous or exogenous by nature. The same variable can be explained in one model and taken as given in another, depending on the question and the scope of the analysis.

Take the price of wheat. For a single Saskatchewan farmer, the world price of wheat is effectively exogenous. Her harvest is far too small to move global markets, so a model of her planting decision sensibly treats the price as given. For a model of the world wheat market, however, the price is endogenous: it is determined by global supply and demand, including harvests in Canada, Russia, Australia and elsewhere.

Interest rates show the same pattern. A model of a household deciding whether to buy a house can treat the mortgage rate as exogenous, because one family cannot change it. A model of the whole economy might treat interest rates as endogenous, determined by central bank decisions that respond to inflation and unemployment. And a model of how the central bank sets rates would treat inflation and unemployment as inputs and the policy rate as the outcome.

VariableModel where it is exogenousModel where it is endogenous
World wheat priceOne farmer’s planting decisionGlobal wheat market
Mortgage interest rateA family’s home-buying choiceEconomy-wide model with central bank behaviour
Household incomeSpending on groceriesLabour market model of wages and jobs
Exchange rateA small importer’s pricingModel of international capital flows
PopulationDemand for housing next yearLong-run model of births, deaths and migration

Choosing what to treat as exogenous is part of choosing the model’s scope. A narrower model takes more things as given and is easier to work with. A broader model explains more but requires more assumptions and more data. Neither is right in general. The question decides.

What exogenous does and does not mean

Calling a variable exogenous is a modelling choice, not a claim that it is unimportant, random or unexplainable. Weather has causes, oil prices have causes and government budgets have causes. Treating them as exogenous simply means the current model does not try to explain them, because doing so is not needed for the question at hand.

Exogenous also does not mean unpredictable. A farmer can use seasonal forecasts to anticipate the weather, and an importer can watch exchange rate trends. The model still takes those inputs as given, but the person using the model can plan for a range of possible values. That is why models are often run under several scenarios for their exogenous inputs, an approach explored in Sensitivity Analysis and Scenario Design.

Finally, exogenous does not mean fixed forever. The whole point of identifying exogenous variables is to ask what happens when they change. A model that treats the world wheat price as given is most useful precisely when it shows how a farmer’s choices respond to a higher or lower price.

Why the distinction matters

Drawing the line correctly matters for three main reasons.

First, it determines what the model can explain. If a model treats household income as exogenous, it cannot tell you why incomes rose. It can only tell you how spending responds when incomes change. Asking such a model to explain income growth asks it to do something it was never built to do.

Second, it determines how changes can be interpreted. In a well-built model, a change in an exogenous variable is a cause and the resulting change in endogenous variables is an effect. If a variable treated as exogenous is actually influenced by the outcome, the model’s conclusions about cause and effect can be wrong. This connects directly to the difference between correlation and causation, discussed in Correlation vs Causation.

Third, it shapes policy advice. Policy variables, such as tax rates, interest rates or regulations, are often treated as exogenous so that the model can show what happens when policymakers change them. But if policy itself responds to economic conditions, treating it as purely exogenous can mislead. The Lucas critique, discussed in Choosing a Model for a Question, warned that people’s behaviour may change when policy rules change, so relationships estimated under old rules may not hold under new ones.

The endogeneity problem in evidence

Economists use the phrase endogeneity problem when a variable treated as an outside cause is actually tangled up with the outcome being studied. The problem arises in three common ways.

  • Reverse causation. The outcome affects the supposed cause. Cities with more police officers may have more crime, not because police cause crime but because cities with more crime hire more police.
  • Omitted variables. A third factor affects both. People with more education tend to earn more, but some of that link may reflect family background or ability, which influences both schooling and earnings.
  • Simultaneity. Two variables determine each other at the same time, as price and quantity do in a market. Looking at price and quantity data alone cannot separate the demand curve from the supply curve.

When endogeneity is present, simple comparisons can give misleading estimates of cause and effect. A naive analysis of police and crime might even conclude that police increase crime. Recognizing which variables are truly exogenous is therefore essential for credible evidence.

How economists find exogenous variation

Because so many economic variables influence each other, researchers spend a great deal of effort finding changes that are genuinely external to the outcome they study. Such changes act like natural experiments, letting them separate cause from effect.

Randomized experiments create exogenous variation directly. If a city randomly selects which neighbourhoods receive a new job training programme, differences in outcomes can be attributed to the programme rather than to the kinds of people who chose to enrol. The 2019 Nobel Memorial Prize in Economic Sciences went to Abhijit Banerjee, Esther Duflo and Michael Kremer for their use of field experiments in development economics.

Weather and natural events are often used because they are not caused by economic decisions. Rainfall shocks have been used to study how farm incomes affect household spending, and storms to study how disruptions spread through supply chains.

Policy rules and thresholds can provide useful variation. If students just above a test score cutoff receive a scholarship while those just below do not, comparing the two groups can reveal the scholarship’s effect, because students near the cutoff are otherwise similar. This approach is called regression discontinuity design.

Instrumental variables use a factor that shifts one variable but affects the outcome only through that variable. Economists have used distance to the nearest college, for example, to estimate the effect of schooling on earnings, though each such choice requires careful argument that the instrument has no other route to the outcome.

Joshua Angrist and Guido Imbens shared the 2021 Nobel Memorial Prize with David Card for developing and applying such methods. Their work made the search for credible exogenous variation central to modern empirical economics.

A classic case: separating supply from demand

One of the oldest examples of the endogeneity problem concerns supply and demand. Suppose you collect data on the price and quantity of coffee sold each year. Each observation is a point where supply and demand met. If both curves shift from year to year, the points will not trace out either curve. Fitting a line through them tells you little about how buyers or sellers respond to price.

The solution is to find an exogenous variable that shifts only one curve. A frost in Brazil reduces coffee supply without directly changing how much people want to drink. Comparing years with and without frost shows how quantity demanded responds as the price moves along the demand curve. Similarly, a change that affects only demand, such as a health study that makes coffee more popular, helps reveal the supply curve. Economists in the 1920s, including Philip Wright in a 1928 study of tariffs on vegetable oils, developed this logic, which later became the foundation of instrumental variable methods. How prices carry this kind of information is explored in Prices as Coordination Signals.

Classifying variables in practice

When building or reading a model, a few questions help sort variables into the right categories.

  • What is the model trying to explain? Those outcomes are endogenous.
  • Which factors does the model take as starting conditions or outside influences? Those are exogenous.
  • Could any supposedly exogenous variable be influenced by the outcomes? If so, the model may have an endogeneity problem.
  • Is the scope right for the question? A variable that is exogenous for a small actor may be endogenous for the whole market.
  • Are policy variables treated as fixed when they actually respond to conditions? If so, conclusions about policy effects may need qualification.

Writing a short list of endogenous and exogenous variables before analyzing any data is a simple habit that prevents many errors. It makes the model’s structure visible and invites others to challenge the choices. Related ideas about the building blocks of models appear in Parameters, Variables and Units.

Endogenous and exogenous variables in the wider economy

Models of the whole economy rely heavily on this distinction. In a basic model of national income, household consumption, business investment, imports and total output are often treated as endogenous: they respond to one another and to prices and interest rates. Government spending, tax rates, the central bank’s policy rate, world commodity prices and foreign demand for exports are often treated as exogenous: the model takes them as given and asks how the economy responds when they change.

That framing lets economists study questions such as what happens to output if the government raises spending by a given amount, or how the economy responds to a jump in world oil prices. For Canada, a rise in global oil prices is a classic exogenous shock: the price is set mainly in world markets, yet it affects Canadian incomes, the exchange rate, government revenues and investment in the energy sector.

The same economy-wide models must be careful about policy. Central banks such as the Bank of Canada adjust interest rates in response to inflation and economic activity. Treating the policy rate as purely exogenous ignores that response. Modern models therefore often include a rule describing how the central bank reacts, making the interest rate endogenous while treating unexpected policy changes, sometimes called policy shocks, as exogenous. How central banks set rates is explained in What Does the Federal Reserve Do.

A second worked example: household spending and income

Consider a simple model of a household’s monthly grocery spending. The figures are illustrative.

Worked example · What the model can and cannot explain

Grocery spending = $250 + 0.10 × monthly after-tax income.

If income is $5,000, spending is $250 + $500 = $750. If income rises to $6,000, spending rises to $850.

In this model, grocery spending is endogenous and income is exogenous. The model explains how spending responds to income, a $100 rise for each $1,000 of extra income.

The model cannot explain why income rose. A promotion, a second job or a tax cut would all look the same to it. To explain income, you would need a different model, such as one of the labour market, in which income becomes endogenous.

This example also shows why the scope matters for interpretation. If the household’s income partly depends on its spending, for instance because a family business sells to neighbours who are also its customers, treating income as purely exogenous would oversimplify. For most households, though, income is a reasonable starting point for modelling grocery spending.

Building a variable list for a small business

Writing out the variables before building a model makes its structure clear. Suppose a café owner wants to understand weekly sales of iced drinks. A first list might look like this. The café is fictional.

VariableClassificationReason
Weekly iced drink salesEndogenousThe outcome the model explains
Price of an iced drinkChoice, often treated as given for a testSet by the owner, so it can be varied to study its effect
Daily temperatureExogenousNot affected by café decisions
Foot traffic on the streetMostly exogenousDriven by local events and seasons, though popular cafés can attract visitors
Staff hoursEndogenous over longer periodsThe owner adjusts staffing in response to expected sales

The list immediately reveals a risk. If the owner schedules more staff on days she expects to be busy, a simple comparison will show that more staff hours go with higher sales. That does not mean adding staff causes higher sales. Staffing responds to expected demand. Recognizing staff hours as endogenous prevents a misleading conclusion. Temperature, by contrast, is a clean exogenous influence: comparing hot and cool weeks can reveal how strongly iced drink sales respond to weather.

A Canadian illustration: oil prices and the dollar

Canada’s economy offers a clear example of an exogenous influence with wide effects. World oil prices are set mainly by global supply and demand, so for most Canadian economic models they are treated as exogenous. When oil prices rise sharply, Canadian energy exports earn more, investment in the oil sector tends to increase and the Canadian dollar often strengthens because foreign buyers need Canadian dollars to pay for exports. A stronger dollar, in turn, makes other Canadian exports, such as manufactured goods, more expensive abroad.

In a model of the Canadian economy, the oil price is the outside force, while the exchange rate, energy investment, manufacturing exports and provincial government revenues are endogenous responses. Studying these links helps explain why provinces with large energy sectors and those focused on manufacturing can experience the same oil price change very differently.

What it means for investors

Investors constantly work with models that take some variables as given. A simple valuation of a company might treat interest rates, economic growth and inflation as exogenous, then estimate how the company’s earnings and share price respond. That is reasonable for a single company, which cannot move the economy. But the investor should remember that those exogenous inputs are themselves uncertain, and that a change in one, such as a sudden rise in interest rates, can affect many holdings at once.

The endogeneity problem also appears in investment research. A strategy might show that companies with high dividend payments performed well. But dividends may be high because companies were already profitable and stable, not because paying dividends causes good performance. Mistaking a variable that reflects success for one that causes it can lead to poor decisions. Simple, diversified approaches, discussed in What Is Diversification in Investing, reduce reliance on any one model’s assumptions about cause and effect.

Using the distinction in everyday reasoning

The same thinking helps with everyday claims. When someone says that people who drink coffee live longer, ask whether coffee drinking is truly the outside cause, or whether coffee drinkers differ in other ways, such as income or health, that also affect lifespan. When a business owner says that advertising increased sales, ask whether the business advertised more because it expected a busy season anyway. Identifying what is taken as given and what is being explained clarifies whether a claim about cause and effect is credible.

Time, feedback and the boundary of a model

A variable that is reasonably treated as exogenous over a short period may become endogenous over a longer one. Over a single season, the number of farmers growing strawberries near a town is fixed. Over several years, high strawberry prices may encourage new growers to plant, and low prices may push some out. A short-run model can take the number of growers as given. A long-run model should explain it.

Feedback loops raise the same issue. Higher house prices can encourage more construction, which eventually increases supply and moderates prices. A model of house prices over the next six months can treat the stock of housing as fixed. A model of the next ten years must treat construction, and therefore the housing stock, as endogenous. The distinction between short-run and long-run responses is explored further in Short Run vs Long Run Adjustment and Static vs Dynamic Models.

A practical rule is to treat a variable as exogenous only if, over the period the model covers, it is not meaningfully influenced by the outcomes the model explains. If it is, the model either needs to explain it or its conclusions need careful qualification.

Common mistakes with endogenous and exogenous variables

Treating a variable as given when the outcome influences it

Assuming that police staffing, advertising budgets or interest rates are fixed outside forces, when they actually respond to the outcomes being studied, leads to biased conclusions about cause and effect.

Asking a model to explain its own inputs

A model that takes income as given cannot explain why income changed. Questions about inputs need a broader model.

Forgetting that classification depends on scope

A price that is exogenous for one buyer is endogenous for the whole market. Mixing levels of analysis causes confusion.

Ignoring the time horizon

Variables that are fixed in the short run often adjust in the long run. Treating them as permanently given can mislead long-term analysis.

Reading cause from correlation

Two variables moving together does not show which one drives the other. Exogenous variation is needed to identify cause and effect.

Frequently asked questions

What is the simplest way to tell endogenous from exogenous variables?

Ask whether the model explains the variable’s value. If the model’s relationships determine it, it is endogenous. If the model assumes it and works out the consequences, it is exogenous.

Can a variable be both endogenous and exogenous?

Not within the same model, but it can be endogenous in one model and exogenous in another. The classification depends on the question and the scope of the analysis.

Is government policy exogenous?

It is often treated as exogenous to study its effects, but in reality policy responds to economic conditions. Careful models either explain policy responses or focus on unexpected policy changes that can reasonably be treated as outside shocks.

What is an endogeneity problem?

It occurs when a variable treated as an outside cause is actually connected to the outcome, through reverse causation, omitted factors or simultaneous determination. It can make estimates of cause and effect misleading.

Why do economists use weather so often in research?

Weather is largely unaffected by economic decisions in the short run, so changes in rainfall or temperature can serve as exogenous shocks that help reveal how economic outcomes respond.

Are prices always endogenous?

In a model of a whole market, prices are usually endogenous because they result from supply and demand. In a model of a single small buyer or seller who cannot influence the market, the price is usually treated as exogenous.

Do I need mathematics to use this distinction?

No. Simply listing what an argument explains and what it takes as given, then asking whether any assumed input might be influenced by the outcome, captures most of the value without any equations.

How does this connect to supply and demand?

In a basic market model, price and quantity are endogenous, determined where supply meets demand. Factors such as weather, input costs, incomes and tastes are exogenous shifters. A change in one of them moves a curve, and the model shows the resulting change in price and quantity, as the strawberry example illustrates.

Key takeaways

  • Endogenous variables are explained by the model, while exogenous variables are taken as given inputs.
  • The same variable can be endogenous in one model and exogenous in another, depending on scope and question.
  • Changes in exogenous variables shift a model’s relationships, and the model solves for new endogenous values.
  • Endogeneity problems arise from reverse causation, omitted variables and simultaneity, and can distort conclusions.
  • Experiments, natural events and policy thresholds provide exogenous variation that helps identify cause and effect.
  • Over longer horizons, more variables become endogenous as feedback and adjustment take effect.

Sources and further reading

OpenStax, Principles of Economics, 3rd ed. · Joshua Angrist and Jörn-Steffen Pischke, Mostly Harmless Econometrics, 2009 · Philip Wright, The Tariff on Animal and Vegetable Oils, 1928 · Robert Lucas, “Econometric Policy Evaluation: A Critique,” 1976 · The Nobel Prize, Economic Sciences 2021 summary

Educational disclosure

This article provides general economics education for informational purposes only. It is not financial, investment, tax or legal advice, and it does not consider your personal circumstances. Examples are simplified for teaching and do not describe real people, organizations or recommendations.

Similar Posts