What Is a Yield Curve?
A yield curve plots the interest rates of government bonds across different maturities, from short-term (1 month) to long-term (30 years). It is the single most watched chart in fixed-income markets because it reveals what investors collectively expect about economic growth, inflation, and central bank policy.
The x-axis shows time to maturity, the y-axis shows yield. Every point on the curve represents the rate the government must pay to borrow money for that specific duration. By connecting those points, you get a curve that tells a story about the economy's future.
Why Government Bonds?
Government bonds from stable nations are considered "risk-free" because the government can tax or print money to repay. This makes them the baseline against which all other bonds are priced. A corporate bond's yield is always expressed as the government yield plus a "credit spread."
Yield Curve Shapes
The shape of the yield curve carries powerful economic signals. There are four primary shapes, each telling a different story about where the economy is heading.
Normal
ExpansionLong-term yields higher than short-term. Investors demand more for locking up money longer. Signals healthy growth expectations.
Inverted
Recession SignalShort-term yields exceed long-term. Investors expect rate cuts ahead. Has preceded every US recession since 1955.
Flat
TransitionSimilar yields across all maturities. Often appears during transitions between normal and inverted curves. Signals policy uncertainty.
Steepening
RecoveryGap between short and long rates is widening. Often signals early recovery as central banks hold short rates low while growth expectations rise.
Historical Context
The yield curve inverted before the 2001 dot-com bust, the 2008 financial crisis, and again in 2022-2023 ahead of the economic slowdown. No indicator is perfect, but the yield curve's track record is unmatched. The 2s10s spread (difference between 2-year and 10-year Treasury yields) is the most commonly watched version of this signal.
Timing Matters
An inverted yield curve signals a recession is coming, but the lead time varies from 6 to 24 months. Selling everything the day the curve inverts would have meant missing significant stock market gains in most historical cycles. Use it as a risk awareness tool, not a timing signal.
Our Data Sources
AllInvestView pulls yield curve data directly from official central bank APIs. These are the same sources used by institutional investors and central banks themselves -- free, authoritative, and updated daily.
Bank of Canada
Valet APIGovernment of Canada benchmark bond yields. The Valet API provides machine-readable JSON with daily benchmark rates used to price all CAD-denominated fixed income.
Tenors: 1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30YUS Treasury
data.treasury.govDaily Treasury Par Yield Curve Rates published by the US Department of the Treasury. The XML feed provides constant-maturity rates that serve as the global risk-free benchmark.
Tenors: 1M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30YEuropean Central Bank
ECB Statistical Data WarehouseAAA-rated Euro area government bond yields. The ECB publishes a composite curve derived from the highest-rated sovereign issuers in the Eurozone, making it the cleanest EUR benchmark.
Tenors: 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y, 30YBank of England
BoE Statistical DatabaseUK gilt yields from the Bank of England's statistical series. Covers key benchmark maturities for GBP-denominated government bonds used to price UK corporate and municipal debt.
Tenors: 5Y, 10Y, 20YFree and Official
All four data sources are free, public government APIs. No expensive Bloomberg or Refinitiv subscription required. This means every AllInvestView user gets institutional-grade yield curve data at no additional cost.
How We Use Yield Curves
Yield curves are not just charts to look at -- they are the foundation of how AllInvestView prices your bonds daily. We use the implied spread method, which compares your bond's yield to the government benchmark to derive a fair price every day.
The Implied Spread Method
When you buy a corporate or municipal bond, you pay a yield that is higher than the equivalent government bond. That difference is the credit spread -- the premium investors demand for taking on the issuer's credit risk. Our method captures that spread at purchase and uses it to reprice your bond as interest rates move.
Get Benchmark
Look up the government yield curve at the bond's purchase date. Interpolate to match the bond's remaining maturity.
Calculate Spread
Subtract the benchmark yield from your bond's yield at purchase. This is the implied credit spread, locked in at trade time.
Reprice Daily
Each day, take the current benchmark yield for the remaining maturity, add back the spread, and compute the theoretical price.
Implied Spread Formula
This approach means your bond's daily value reflects both changes in the overall interest rate environment (via the benchmark) and the credit quality of your specific issuer (via the spread). If Treasury yields drop 50 basis points, your bond's theoretical price rises accordingly. If the spread widens due to credit deterioration, you would see that reflected in a lower price.
Why Not Just Use Market Prices?
Many bonds, especially corporate and municipal issues, trade infrequently. Some go weeks without a single trade. The implied spread method provides a fair theoretical value every day, even when no market trade has occurred. For liquid bonds, you can compare our theoretical price against the actual market price to gauge whether the bond is cheap or rich.
Reading the Curve
Understanding what the yield curve is telling you is one of the most valuable skills in fixed-income investing. Here is what each shape means and how it should influence your portfolio decisions.
Normal Curve (Upward Sloping)
This is the most common shape. Long-term rates are higher than short-term rates because investors demand extra compensation for the uncertainty of lending over longer periods. A normal curve signals that the economy is growing, inflation expectations are moderate, and central banks are not expected to change course dramatically.
Portfolio implication: Extending duration (buying longer-dated bonds) is rewarded with higher yields. Bond ladders work well in this environment because each successive rung offers a higher rate.
Inverted Curve
When short-term rates exceed long-term rates, the curve inverts. This is the bond market's most powerful recession signal. It means investors are so pessimistic about the economic outlook that they are willing to accept lower long-term rates, expecting central banks will be forced to cut rates aggressively.
Portfolio implication: Consider shortening duration. Short-term bonds offer higher yields with less price risk. Credit spreads tend to widen during recessions, so favor higher-quality issuers.
Flat Curve
A flat curve means similar yields across all maturities. It typically appears during transitions -- when the economy is shifting from expansion to contraction (or vice versa). There is no extra reward for taking on duration risk.
Portfolio implication: With no yield pickup for going longer, keep maturities short or intermediate. You get the same yield with less interest rate risk.
Steepening vs Flattening
The direction of change matters as much as the shape itself. A steepening curve (long rates rising faster than short rates) often signals early recovery or rising inflation expectations. A flattening curve (long rates falling toward short rates) often precedes inversions and economic slowdowns.
| Curve Shape | Economic Signal | Duration Strategy | Credit Strategy |
|---|---|---|---|
| Normal (steep) | Healthy growth | Extend for yield pickup | Moderate credit risk OK |
| Flattening | Late cycle | Reduce duration gradually | Move up in quality |
| Inverted | Recession warning | Stay short | High quality only |
| Steepening | Early recovery | Begin extending | Selective high-yield |
Your Bonds on the Curve
AllInvestView goes beyond showing you a static yield curve. In the Bond Report, we overlay your actual bond holdings as dots on the relevant government benchmark curve, so you can instantly see where your portfolio sits.
How the Overlay Works
- Each bond appears as a dot plotted at its remaining maturity (x-axis) and current yield (y-axis)
- Dot size reflects position value -- larger positions appear as bigger dots so you can see concentration at a glance
- The benchmark curve runs underneath as a line, showing the "risk-free" rate at each maturity
- Distance above the curve represents your credit spread -- the extra yield you earn for taking on issuer risk
What to Look For
Clustering: If all your dots are bunched at one maturity, you have concentration risk. A ladder spreads dots evenly across the curve.
Spread compression: If a dot is close to the benchmark line, you are being paid very little for the issuer's credit risk. Consider whether the yield justifies the risk.
Outliers: A dot far above the curve has a wide spread -- either a high-yield opportunity or a sign of credit stress. Investigate before adding more.
Multi-Currency Support
If you hold bonds denominated in different currencies, AllInvestView maps each bond to its appropriate benchmark curve. A CAD corporate bond is plotted against the Government of Canada curve, a USD bond against the US Treasury curve, and so on. This ensures you are comparing apples to apples -- a bond's spread only makes sense relative to its own currency's risk-free rate.
Frequently Asked Questions
See Your Bonds on the Yield Curve
Add your bond holdings and instantly see them plotted against live government benchmark curves from 4 central banks.
Get Started Free View Bond Report