2022–23, an index of the social composition of each school’s pupils. We use these sources, combined into a panel of 2,394 general and technological lycées observed over the seven sessions from 2017 to 2023, to ask how far social origin still determines what pupils obtain at the end of secondary school, and through which parts of the system that determination passes.At national level, passing the baccalauréat has become close to universal, but the gap between the children of senior managers and the children of manual workers has not narrowed since 1998. Between schools, social composition orders results with considerable force: a ten-point difference in the social index corresponds to about eight percentage points in the share of candidates passing with distinction, and this single relationship accounts for more than half of the variation between establishments. The two pandemic sessions of 2020 and 2021, awarded largely on continuous assessment, temporarily compressed this relationship; it returned to its earlier level after the 2021 reform of the examination.We then examine four further lines of division. Curricular choice is the strongest: the technological streams are offered where the pupils served are least advantaged, and since the reform replaced the general-track streams with a menu of specialisms, mathematics has become the clearest social marker in the system. Sex produces a second, largely independent segregation that is greater in curricular terms than the social one. Teaching staff are distributed unequally in a way that closely follows pupils’ social origin, but this inequality accounts for little of the outcome gap once pupils’ social origin is held constant. The gap between the public and the subsidised private sector is about half a matter of the pupils each sector serves; the remainder resists every adjustment we can make.We conclude that the published indicators describe social sorting more than institutional quality, and that the additions needed to change this are known and modest.