# Endogenous variables

**URL:** <https://forum.dynare.org/t/endogenous-variables/17599>\
**Category:** General DSGE Modeling\
**Created:** [6 March 2021 23:28 UTC](https://forum.dynare.org/t/endogenous-variables/17599 "2021-03-06T23:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_1983](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@steve\_1983](https://forum.dynare.org/u/steve_1983)\
**Post date:** [6 March 2021 23:28 UTC](https://forum.dynare.org/t/endogenous-variables/17599/1 "2021-03-06T23:28:46Z")

</div>

@jpfeifer I have a conceptual question. When we refer to a variable as endogenous variable in a dsge model, does it have to be either a control variable or a state variable with respect to which we optimise. For example we have output which is expressed as a function of capital and labor. We never optimise wrt output but output is an endogenous variable in the model.

Best  
Steve

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [7 March 2021 16:40 UTC](https://forum.dynare.org/t/endogenous-variables/17599/3 "2021-03-07T16:40:16Z")

</div>

Anything that needs to be solved with the rest of the model is an endogenous variable, even if it’s not something that you optimize directly, An example are competitive factor prices. They need to clear the markets, but are not chosen.  
Exogenous variables are the ones where you know the values or the process in advance, e.g. TFP in the RBC model.
