This chapter shows how to model the distribution of costs and health effects of a health programme by equity-relevant characteristics. We introduce the ‘staircase of inequality’, a framework for thinking about the main steps in the causal pathway leading to differences in costs and effects by equity-relevant characteristics. We then illustrate the application of this framework with the example of public funding options for nicotine replacement therapy (NRT) in England. In this case, the main steps along the staircase of inequality are: need (who smokes), receipt (which smokers use smoking cessation services and how delivery costs vary), short-term effect (which service users succeed in quitting), and long-term effect (which short-term quitters become long-term quitters and how many healthy years they gain). At each step, we model differences in costs and effects by socioeconomic status and geography. We then combine this information to simulate the distribution of lifetime costs and health effects. The framework can also be applied to other equity-relevant variables, such as ethnicity or gender, other concepts of health, and other time horizons. We discuss the key assumptions and data requirements for implementing this approach, highlighting potential data sources and providing guidance for setting these parameters when evidence is scarce.