Interactive demo
The spread between the 10-year and 2-year Treasury yields is the most-watched recession signal in markets. When it turns negative, the yield curve has inverted: short money pays more than long money, which markets only do when they expect the economy to slow. This chart plots it on real public FRED data, back to 1976, with every NBER recession shaded, so you can see the pattern for yourself. It is one of the economic dashboards I maintain, ported from R to a dependency-free chart on this static site. The data is refreshed by hand; the as-of month is on the chart.
Prefer the written version? Read how to read the yield curve on the blog.
A small Node generator pulls two series (the 10-year and 2-year constant-maturity Treasury yields) from the public FRED endpoint run by the Federal Reserve, computes the monthly spread, and writes a static JSON. This page draws that dated JSON, refreshed by hand, with a hand-rolled, dependency-free SVG line chart, so the whole thing is a static export with no server and no charting library. The generator is run by hand, so the data is as current as its last run, and the as-of month is printed on the chart. The recession bands are NBER business-cycle dates.
View the raw data that drives this page.
The Data Lab puts this spread beside unemployment, inflation, and twelve-month forecasts, with the as-of month on every card.