The flat sits on the fourth floor of a building that has not been painted in years. The stairwell is narrow, the rooms are small enough to cross in three steps, and there is no proper kitchen, only a corner with a sink. The building is old, and by every ordinary measure it is worth very little.

Then the agent names the price, and it is higher than a comfortable new apartment twice the size in a newer part of the city. The reason is not the flat itself. It is the postcode, and the primary school that sits within walking distance of the front door.
This is the world of xuequfang, school district housing. For years it has been one of the strangest corners of the Chinese property market, a place where a cramped, ageing apartment can cost more than a luxury one, because buying it is the way to buy a place at a good local school.
To understand why families pay these prices, you have to understand how a child is assigned to a school, and how much that assignment is believed to be worth.
What School District Housing Is
The term xuequfang combines the words for school, district and house. It means a home that falls inside the enrolment zone of a desirable public primary or middle school.
In China, public schools at the compulsory stage are generally meant to take children who live nearby. The principle is known as nearby enrolment, and it ties a child’s school place to an address rather than to an exam or an interview. The idea is simple and, in principle, fair. Every child goes to the school closest to home, and no family has to compete.
The trouble is that schools are not equal. Some have long histories, strong teachers, well-equipped classrooms and reputations that stretch back decades. Others, a few streets away, are seen as weaker. When a good school and a weak school sit in the same city, the address that secures the good one becomes valuable, and its value shows up in the price of the flats around it.
That is how an ordinary building becomes a piece of education infrastructure. The flat is no longer only a home. It is a ticket.
The phrase has moved far beyond the property pages. It appears in news headlines, in conversations between new parents, and in the jokes of people who cannot afford it. Everyone in a Chinese city knows what the word means, even those with no intention of buying. It has become shorthand for the way a good school reshapes an ordinary street.
How the Assignment Works
The details vary from city to city, but the broad shape is shared.
Each public school is given a catchment area, a set of streets and buildings whose children it is expected to accept. A family that lives inside the catchment, and can prove it with documents, is normally entitled to a place for their child. A family a few hundred metres outside it is not.
Cities then decide how firm that link should be. Under one arrangement, known as single-school districting, a specific address maps to one specific school. Buy at that address and the school place is, in effect, guaranteed. Under a newer arrangement, multi-school districting, a district is linked to several schools, and children are assigned among them by computer lottery. The address still matters, but it no longer promises one particular gate.
The shift toward lottery systems was intended to loosen the tight bond between a flat and a single famous school. It did that in part, and it also changed the arithmetic for families, who now had to weigh a chance rather than a certainty.
The paperwork is strict. A family usually has to show a local household registration and a property deed that match the address. Some cities add a rule that a single flat can supply only one school place every few years, a measure meant to stop owners from flipping the unit to a new family each autumn. The rules change from year to year, and parents follow them closely.
Because the rules carry so much weight, a small change can move a market. When a district redraws a boundary, prices on one side of a street can jump and prices on the other can fall, even though the buildings look the same. An invisible line on a map turns into a line on a price chart.
The Price of a Shorter Walk
The premium attached to a good catchment can be large, and economists have tried to measure it.
A widely cited study of primary schools in Nanjing compared house prices across the city and found that homes inside the zone of a top primary school carried a premium of roughly one fifth above comparable homes nearby. Flats inside the zone of a branch campus of a famous school carried a much smaller premium, closer to a few percent.
The most striking cases come from the most sought-after districts. A case widely reported around 2016 involved a room of little more than ten square metres in a prime part of Beijing that sold for more than five million yuan, a price per square metre that broke records for the city. The room had almost no living function. What it had was an address.
Because buyers are paying for the school and not the space, some families buy the smallest possible qualifying unit and never move in. They keep living in their larger home and use the tiny flat only for the paperwork. Neighbours in these buildings often notice that the lights stay off for most of the year.
The premium shows up in rent as well as in sale prices. A small flat inside a top catchment can rent for far more than a larger one a few streets away. Landlords know what they are selling. In some districts the gap between two identical buildings is large enough to be the whole story of the local market.
Why Parents Still Buy
To an outsider, the sums can look irrational. A family may spend years of income on a flat that is hard to live in, all for a school place that could, under a lottery, be uncertain.
The reasoning inside the family is different, and it rests on three ideas.
The first is insurance. Chinese parents widely believe that a strong primary school shapes the years that follow, and that a good start protects a child through the competitive stages of education. Paying for the flat feels like paying to remove one risk from a long, uncertain journey.
The second is resale. The flat is not only consumed, it is held. Families tell themselves that they can sell it after the child finishes, and that the next family with a young child will pay the same premium. For years this turned the purchase into a store of value as well as a school ticket, which made the high price easier to accept.
The third is comparison. When a family sees other parents doing the same thing, staying out feels like a decision to give a child less. The pressure is social as much as financial, and it is hard to resist in a group where everyone is buying.
There is also the cost of the alternative. A private or international school can be expensive for many years, and its fees are gone once paid. The flat, by contrast, is an asset that can be sold. For a family weighing a long-term bill against a long-term asset, the flat can look like the safer of two expensive choices.
What Changed After 2021
The market has cooled in some places since the early 2020s, and the reasons are several.
Cities expanded the use of multi-school districting, so that an address buys a chance at a group of schools rather than a guaranteed place at one. A separate set of rules reduced the burden of after-school tutoring, which changed the way many parents thought about the years around primary school. A softer property market in many cities also made buyers more cautious about paying a large premium for an old, small flat.
The effect has been uneven. In the most desirable districts, prices stayed stubbornly high, because the underlying demand for a good school did not disappear. In other areas, the premium narrowed, and some agents reported that the small, barely livable flats were harder to sell than before.
What did not change is the underlying logic. As long as families believe that one school is clearly better than another, and as long as an address can influence the place, the address will carry a price.
The Families in the Middle
Behind the headline prices are ordinary households making careful calculations.
Many are dual-income couples who cannot afford the flat alone and turn to grandparents. A common pattern is that two sets of grandparents, or one, contribute savings built over a lifetime, and the young couple takes on a long mortgage. The flat becomes a family project rather than a personal purchase, with several generations invested in one address.
There are also the families who rent. Because school places are usually tied to ownership and to registered local residence, renters often have less claim on a catchment, and a family that cannot buy may watch a good school stay out of reach. The gap between owners and renters inside the same street can be the difference between a place and no place.
And there are the agents, who work in a market where a single phrase on a listing changes everything. In their world, the words school district are worth more than any description of the rooms.
Older residents watch it all from the sidelines. Many have lived in these buildings for decades, back when the school was simply the school at the end of the road. They remember when the flats were cheap. Now they sit in the middle of a quiet auction, and some of them find the whole thing hard to believe.
Compared With the West
A reader from Britain or the United States will recognise part of this, because school catchments shape house prices there too.
In Britain, homes inside the catchment of a well-regarded state school sell at a premium, and parents track admissions rules the way others track interest rates. In American suburbs, the reputation of a local school district is one of the strongest forces on property values. The link between a good school and a high price is not a Chinese invention.
The differences are in the shape of the market and the alternatives. In many Western cities, families can choose between public and private, can move to a district with a strong school system, or can rely on a wider spread of decent public schools. In China, the most sought-after public schools sit inside dense, land-scarce cities where few new homes are built in the best districts, so the supply of flats that open the door is small and fixed.
That scarcity is what turns a school place into an asset. When the door is narrow and cannot be widened quickly, the price of standing at it rises.
The two systems also reflect different ideas about where a family should live. In many Western cities, moving to a different suburb for a good school is a normal step, and people accept a longer commute as part of it. In China, the best schools often sit in the oldest, densest parts of a city. The answer is not to move outward but to squeeze inward, into a smaller flat closer to the gate.
A Doorway, Not a Home
Walk past one of these buildings at the end of a school day and the scene looks almost ordinary. Children spill out of a gate and scatter into a network of narrow lanes, and a few adults wait to collect them. The building above is grey and plain, and nothing about it suggests the sums that changed hands to secure an address inside its shadow.
Then look at the windows and notice how few of them are lit at night, and the strange truth of the place comes into view. These flats are bought for a doorway rather than for a home. A family pays a fortune for a few square metres of space it will barely use, and the real thing being traded is a child’s first few years of school.
For a visitor trying to understand Chinese family life, the small flat near a famous school is a telling object. It is a piece of real estate, a family strategy and a measure of belief, all folded into one cramped, expensive room.
This story is based on publicly documented practices and on reporting in the Chinese and international press. The families described are illustrative, and no individual is identified.