美国房价:按美元计价创历史新高,但剔除通胀后并非如此
US home prices: record highs in dollars, but not after inflation

原始链接: https://datascienceplus.com/inflation-adjusted-home-prices-in-r-record-highs-in-dollars-but-how-once-you-take-out-inflation/

2026年第三季度,美国房价再次创下名义纪录,100个大都市区中有43个也处于纪录高位。但在使用BEA的PCE价格指数进行通胀调整后,全国市场并未处于纪录高位:实际价格已在2024年第四季度见顶,目前低1.8%。只有11个大都市区的实际价格处于纪录高位。 文章展示了如何在R中对FHFA的仅购房、经季节调整的季度房价指数(HPI)进行平减:将每个HPI值除以该季度的PCE指数,然后换算为最近一个季度的美元价值。自2022年第二季度以来,87个大都市区名义上涨,但只有52个在通胀调整后上涨。奥斯汀的实际跌幅最大,下降26%;罗切斯特和哈特福德的实际涨幅领先,分别约为20%和19%。最大的实际跌幅主要集中在加利福尼亚州、科罗拉多州和华盛顿州,以及奥斯汀、开普科勒尔和新奥尔良。仍有16个大都市区低于其2010年前的实际峰值。使用剔除食品、能源和住房的PCE指数,全国的差距略小:比2024年第四季度的实际峰值低1.3%。

摘要:该帖子讨论一种说法:美国房价按名义价格处于历史高位,但经通胀调整后并非如此。评论者质疑这种表述:有人认为 CPI 已经包含住房成本,但不包含住房资产价格,而且文章图表仍显示自 1995 年以来房价有可观的实际涨幅。另一些人则认为,更好的可负担性衡量标准是房价相对于当地收入的水平、每平方英尺价格,或相当于多少年工资中位数。 一个反复出现的主题是,“住房价格”高度地方化:昂贵的大都市区主导了抱怨,但工资停滞的低成本地区也面临房价难以负担的问题。一些评论者归咎于供应受限,包括邻避主义、许可审批拖延,以及偏重“可负担住房”强制要求而非实际建房的政策;另一些人则指出建筑成本上升、需求、移民、央行政策,以及新房面积越来越大。政策建议包括放宽许可、采用开发商补救措施,以及恢复储蓄贷款式融资。辩论还涉及工资是否跟上通胀,以及通胀如何通过侵蚀抵押贷款债务而使债务人受益。
相关文章

原文

US home prices set another record in 2026 Q3, according to the Federal Housing Finance Agency’s index, and 43 of the 100 largest metro areas it tracks were at a record too. I wondered how many of those records survive once you take out inflation. For the country, none: after inflation, prices peaked in 2024 Q4 and are 1.8% lower now. Among the metros, 11 are at a real record. In Austin homes have lost 26% of their real value since the spring of 2022, the largest drop of the 100.

How do I adjust prices for inflation in R?

Divide each price by the price index for its period, then multiply by the index for the period you want to express it in: real = price / index * index_base. Home prices here are the FHFA House Price Index (purchase-only, seasonally adjusted, quarterly), which follows repeat sales of the same homes with mortgages bought by Fannie Mae or Freddie Mac. Inflation is the price index for consumer spending (PCE) from the U.S. Bureau of Economic Analysis (BEA). This runs on R 4.6.1 with readr 2.2.0 and dplyr 1.2.1:

library(tidyverse)
options(timeout = 300)                               # the BEA file is 36 MB

hpi <- read_csv("https://www.fhfa.gov/hpi/download/monthly/hpi_master.csv") |>
  filter(hpi_type == "traditional", hpi_flavor == "purchase-only", frequency == "quarterly",
         place_id == "USA" | level == "MSA") |>
  transmute(place_id, place_name, level, quarter = yq(paste(yr, period)), hpi = index_sa) |>
  drop_na(hpi)

txt <- tempfile(fileext = ".txt")
download.file("https://apps.bea.gov/national/Release/TXT/NipaDataQ.txt", txt, quiet = TRUE)
bea <- read_csv(txt, skip = 1, col_names = c("code", "quarter", "value"), col_types = "ccc") |>
  mutate(quarter = yq(quarter), value = parse_number(value))
pce <- bea |> filter(code == "DPCERG") |> select(quarter, pce = value)

homes <- hpi |>
  inner_join(pce, by = "quarter") |>
  mutate(real = hpi / pce * pce[quarter == max(quarter)][1])   # in latest-quarter dollars

peak <- homes |> filter(place_id == "USA") |> slice_max(real, n = 1) |> pull(quarter)

yq() turns a year and a quarter number into the first day of that quarter in both files, so the join has one date format to match. An index has no dollar value: FHFA’s is 100 in 1991 Q1, so only changes can be read off it.

US home prices since 1991

You can copy the gray theme below for your own plots.

dsp_colors <- c("#0066CC", "#E8862D", "#159A6C", "#7D5BD6",
                "#D64580", "#2AA9B8", "#C9A227")
dsp_theme <- theme_minimal(base_size = 13) +
  theme(plot.background    = element_rect(fill = "#ECECEF", color = NA),
        panel.background   = element_rect(fill = "#ECECEF", color = NA),
        panel.grid.minor   = element_blank(),
        panel.grid.major.x = element_blank(),
        panel.grid.major.y = element_line(color = "grey78"),
        axis.ticks         = element_blank(),
        plot.title         = element_text(face = "bold"),
        strip.text         = element_text(face = "bold"),
        legend.position    = "top")

homes |>
  filter(place_id == "USA") |>
  select(quarter, `In dollars of the day` = hpi, `After inflation, in latest-quarter dollars` = real) |>
  pivot_longer(-quarter, names_to = "measure") |>
  ggplot(aes(quarter, value, color = measure)) +
  geom_line(linewidth = 1) +
  scale_color_manual(values = dsp_colors[1:2], name = NULL) +
  labs(x = NULL, y = "FHFA House Price Index (1991 Q1 = 100 in dollars)") +
  dsp_theme
US home prices since 1991: image from “Inflation-adjusted home prices in R: record highs in dollars, but not after inflation”

In dollars the line keeps rising after a pause in 2022. After inflation it has been nearly flat since then, with its highest point in 2024 Q4. It is still 27% above the top of the 2000s boom (2006 Q1).

A hundred metros, two answers

For each metro I compare the latest quarter with 2022 Q2 and check whether the latest quarter is the highest in the series:

metros <- homes |>
  filter(level == "MSA") |>
  group_by(place_name) |>
  summarise(dollars_2022  = hpi[quarter == max(quarter)] / hpi[quarter == as.Date("2022-04-01")] - 1,
            real_2022     = real[quarter == max(quarter)] / real[quarter == as.Date("2022-04-01")] - 1,
            dollar_record = hpi[quarter == max(quarter)] == max(hpi),
            real_record   = real[quarter == max(quarter)] == max(real),
            vs_boom       = real[quarter == max(quarter)] / max(real[year(quarter) < 2010]) - 1)

metros |>
  summarise(up_in_dollars = sum(dollars_2022 > 0), up_in_real_terms = sum(real_2022 > 0),
            records_in_dollars = sum(dollar_record), records_in_real_terms = sum(real_record))
## # A tibble: 1 × 4
##   up_in_dollars up_in_real_terms records_in_dollars records_in_real_terms
##           <int>            <int>              <int>                 <int>
## 1            87               52                 43                    11

Since 2022 Q2, 87 of the 100 metros have gained in dollars and 52 after inflation. The plot shows the ten with the largest real losses and the ten with the largest real gains:

bind_rows(slice_min(metros, real_2022, n = 10), slice_max(metros, real_2022, n = 10)) |>
  mutate(place_name = str_remove(place_name, " \\(MSAD\\)"),
         place_name = fct_reorder(place_name, real_2022)) |>
  ggplot(aes(y = place_name)) +
  geom_vline(xintercept = 0, color = "grey50") +
  geom_segment(aes(x = dollars_2022, xend = real_2022), color = "grey65") +
  geom_point(aes(x = dollars_2022, color = "In dollars"), size = 2.8) +
  geom_point(aes(x = real_2022, color = "After inflation"), size = 2.8) +
  scale_color_manual(values = c("In dollars" = dsp_colors[2], "After inflation" = dsp_colors[1]),
                     breaks = c("In dollars", "After inflation"), name = NULL) +
  scale_x_continuous(labels = scales::percent) +
  labs(x = "Change in home prices since 2022 Q2", y = NULL) +
  dsp_theme +
  theme(panel.grid.major.x = element_line(color = "grey78"),
        panel.grid.major.y = element_blank())
A hundred metros, two answers: image from “Inflation-adjusted home prices in R: record highs in dollars, but not after inflation”

The largest gains are in the Northeast and the Midwest, led by Rochester, NY (20% after inflation) and Hartford, CT (19%). Seven of the ten largest losses are in California, Colorado and Washington State, and the other three are Austin, Cape Coral and New Orleans. 16 of the 100 are still below the real peak they reached before 2010, 7 of them in California.

Which price index?

Consumer spending includes housing, so dividing home prices by PCE partly divides housing by housing. BEA also publishes PCE without food, energy and housing:

core <- bea |> filter(code == "IA001176") |> select(quarter, core = value)

us_core <- homes |>
  filter(place_id == "USA") |>
  inner_join(core, by = "quarter") |>
  mutate(real_core = hpi / core)

With that index the US peak falls in 2024 Q4 and the latest quarter is 1.3% below it, against 1.8% with the full index.

Updated December 2026: rebuilt with the FHFA House Price Index and BEA prices. The first version used a different home price index, so its numbers differ, including the date of the real peak. Source: FHFA House Price Index® (purchase-only, seasonally adjusted) and U.S. Bureau of Economic Analysis.

联系我们 contact @ memedata.com