Yield Curve Analysis

Understand yield curve shapes, read signals from 4 central banks, and see exactly where your bonds sit on the benchmark curve.

12 min read

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

Expansion

Long-term yields higher than short-term. Investors demand more for locking up money longer. Signals healthy growth expectations.

Inverted

Recession Signal

Short-term yields exceed long-term. Investors expect rate cuts ahead. Has preceded every US recession since 1955.

Flat

Transition

Similar yields across all maturities. Often appears during transitions between normal and inverted curves. Signals policy uncertainty.

Steepening

Recovery

Gap 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 API

Government 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, 30Y
🇺🇸

US Treasury

data.treasury.gov

Daily 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, 30Y
🇪🇺

European Central Bank

ECB Statistical Data Warehouse

AAA-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, 30Y
🇬🇧

Bank of England

BoE Statistical Database

UK 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, 20Y

Free 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.

1

Get Benchmark

Look up the government yield curve at the bond's purchase date. Interpolate to match the bond's remaining maturity.

2

Calculate Spread

Subtract the benchmark yield from your bond's yield at purchase. This is the implied credit spread, locked in at trade time.

3

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

Spread = Bond_YTM_at_purchase - Benchmark_yield_at_purchase
Today's_fair_yield = Current_benchmark_yield + Spread
Today's_price = PV(coupons + face, discounted at fair_yield)
The benchmark yield is interpolated from the government curve to match the bond's exact remaining maturity. Present value (PV) calculation uses QuantLib for precision.

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 ShapeEconomic SignalDuration StrategyCredit Strategy
Normal (steep)Healthy growthExtend for yield pickupModerate credit risk OK
FlatteningLate cycleReduce duration graduallyMove up in quality
InvertedRecession warningStay shortHigh quality only
SteepeningEarly recoveryBegin extendingSelective 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

What is a yield curve?
A yield curve is a graph plotting the interest rates (yields) of government bonds across different maturities, from short-term (1 month) to long-term (30 years). It shows the relationship between how long you lend money and what return you receive. The shape of the curve is one of the most important economic indicators in financial markets.
What does an inverted yield curve mean?
An inverted yield curve occurs when short-term bonds yield more than long-term bonds. It has historically been one of the most reliable recession indicators, preceding every US recession since 1955. It signals that investors expect central banks to cut rates in response to an economic slowdown. However, the lead time between inversion and recession varies from 6 to 24 months.
How often are yield curve data updated?
AllInvestView pulls yield data directly from official central bank APIs. US Treasury data updates daily on business days, the Bank of Canada Valet API provides same-day benchmarks, ECB data refreshes each trading day, and Bank of England gilt yields update daily. Data is typically available by late afternoon in each respective time zone.
What is the implied spread method for bond pricing?
The implied spread method calculates a bond's credit spread over the government benchmark at the time of purchase, then reprices the bond daily by adding that spread to the current benchmark yield. This gives a theoretical fair value that reflects both interest rate movements and the bond's credit quality. It is especially useful for bonds that trade infrequently and lack daily market prices.
Which government yield curves does AllInvestView support?
AllInvestView supports four government yield curves: US Treasury (from data.treasury.gov), Canadian Government of Canada bonds (Bank of Canada Valet API), Euro area AAA-rated government bonds (ECB Statistical Data Warehouse), and UK Gilts (Bank of England). All data comes from free, official government APIs -- no expensive data subscriptions required.
Can I see my bonds plotted on the yield curve?
Yes. AllInvestView's Bond Report overlays your individual bond holdings as dots on the relevant government benchmark curve. Each dot is sized by position value, so you can see portfolio concentration at a glance. The vertical distance between a dot and the benchmark line represents the credit spread you are earning for that bond's issuer risk.

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