Z-Spread Calculator
- The z-spread is the constant spread added to every point of the spot curve that makes the curve-discounted price equal the market price of 102.00 - unlike a yield spread it respects the curve's shape.
- This page builds the spot curve by linear interpolation between your 1-year spot of 3% and the 5-year spot of 4.5%, then discounts all 5 payments on that curve.
- Solved by bisection, the z-spread is 11.7 bp. The same bond's yield to maturity is 4.544% - the gap between the two is the curve-shape effect a plain G-spread hides.
- Use the z-spread to compare bonds on one curve: a wider z-spread at the same credit quality is the cheaper bond. The interpolation between the two anchor spots is this calculator's stated simplification - a full curve would shift the result slightly.
The z-spread calculator finds the single constant spread that must be added to a spot curve so that the discounted value of every bond payment equals its market price. Enter the bond's coupon, maturity, price and the spot rates, and the calculator returns the z-spread in basis points. The answer often surprises people. A 5% 5-year bond priced at 102 over a spot curve rising from 3% to 4.5% has a z-spread of just 11.7 bp. A 3% 3-year semiannual bond at 95 over a 2% to 3% curve needs a z-spread of 183.1 bp to reach its price. And on a flat 5% curve, a 6% 10-year bond at par has a z-spread of exactly 100.0 bp — its yield advantage over the curve.
This method is the accepted standard because it discounts every payment on the spot curve plus one constant spread, matching each cash flow to the rate that actually applies to its date. Yield to maturity, by contrast, uses one flat rate for all payments, so it cannot separate a bond's extra return from the shape of the curve. The z-spread can, which is why it is the figure used to compare bonds against a benchmark. This page shows the formula, the step-by-step workings, worked examples and sources, so you can follow each calculation and check the result yourself.
Worked examples
5% 5-year annual bond at 102, spots 3% to 4.5%
(102 · 5 % · 5 years · Annual · 3 % · 4.5 %)
| Z-spread | 11.7 bp |
| Yield to maturity | 4.544% |
| Spot rate at maturity | 4.50% |
| Number of payments | 5 |
| Annual coupon cash flow | 5.00 per 100 face |
3% 3-year semiannual bond at 95, spots 2% to 3%
(95 · 3 % · 3 years · Semiannual · 2 % · 3 %)
| Z-spread | 183.1 bp |
| Yield to maturity | 4.810% |
| Spot rate at maturity | 3.00% |
| Number of payments | 6 |
| Annual coupon cash flow | 3.00 per 100 face |
6% 10-year bond at par on a flat 5% curve
(100 · 6 % · 10 years · Annual · 5 % · 5 %)
| Z-spread | 100.0 bp |
| Yield to maturity | 6.000% |
| Spot rate at maturity | 5.00% |
| Number of payments | 10 |
| Annual coupon cash flow | 6.00 per 100 face |
How the z-spread is calculated
To see how a z-spread calculator works, start with the bond that anchors the method: a 5% 5-year bond priced at 102 over a spot curve rising from 3% to 4.5%. The calculator first builds the interpolated spot curve between those two anchors, so that every one of the bond's five payments is discounted at its own spot rate rather than at a single yield. It then discounts all five payments and solves by bisection until the present value matches the 102 price. The spread that makes the two sides equal is the z-spread — here, just 11.7 bp.
The mechanics follow directly from that description. Each cash flow is discounted on the spot curve plus one constant spread, and the constant is adjusted until the discounted cash flows add up to the market price. Because the spread is added to every spot rate, it shifts the whole curve up or down in parallel, which is why it is called a zero-volatility spread: it measures the uniform compensation the bond offers over the spot curve. The yield to maturity, by contrast, uses one flat rate for all payments, so it blends the shape of the curve into a single number and cannot separate the curve from the bond's own spread.
The same procedure handles bonds that trade far from par and bonds whose coupons differ sharply from market rates. A 3% 3-year semiannual bond at 95 over a 2% to 3% curve needs a z-spread of 183.1 bp to reach its price — a much larger adjustment, reflecting a discount bond with a below-market coupon. At the other extreme, on a flat 5% curve, a 6% 10-year bond at par has a z-spread of exactly 100.0 bp, which is simply its yield advantage over the curve. In each case the calculator interpolates the curve, discounts every payment, and searches for the spread that reproduces the observed price.
The bisection step is what makes the answer reproducible. The calculator brackets the spread between a low and a high trial value, evaluates the discounted value at the midpoint, and narrows the interval depending on whether the result is above or below the target price. Repeating that process converges on the spread to the precision reported — 11.7 bp for the 102-priced bond, 183.1 bp for the 95-priced bond, and 100.0 bp for the par bond on the flat curve. The output is therefore a direct reading of the price, the cash flows, and the spot curve, not an estimate layered on top of them.
Z-spread versus G-spread and YTM
A single yield spread is easy to quote but hard to trust when the curve is not flat. The z-spread and the yield to maturity (YTM) treat the time value of money differently. YTM uses one flat rate to discount every payment on the bond. The z-spread instead discounts each payment on the spot curve and then adds one constant spread on top. On a sloped curve, those two approaches pull apart, and the gap is not a rounding error. It is a real difference in how the cash flows are valued.
A z-spread calculator makes that difference visible. Take a 5% 5-year bond priced at 102 over a spot curve rising from 3% to 4.5%. The z-spread comes out to just 11.7 bp. A single flat yield would not describe that bond the same way, because the later cash flows sit on higher spot rates than the earlier ones. The constant spread that reconciles the price to the full curve is small, but it is not zero, and a flat-rate measure would not reproduce it.
The effect grows when the curve is steeper and the price is further from par. A 3% 3-year semiannual bond at 95 over a 2% to 3% curve needs a z-spread of 183.1 bp to reach its price. Here the discount bond's cash flows are being pulled down by a rising curve, so the spread has to be large to match the observed price. A YTM-based spread would fold that curve shape into one number and lose the term structure that produced it.
The flat-curve case is the clean comparison. On a flat 5% curve, a 6% 10-year bond at par has a z-spread of exactly 100.0 bp, which is its yield advantage over the curve. When the curve is flat, the spot curve and the flat rate coincide, so the z-spread and the yield spread agree. That 100.0 bp is the point where the measures line up. Move to a sloped curve, and the agreement breaks: the z-spread keeps tracking each payment's own spot rate, while a single yield spread cannot.
The practical lesson is that a yield spread is a summary, not a measurement of the curve. The z-spread answers a narrower question: what constant spread, added to the spot curve, reprices the bond exactly? When the curve slopes, that answer and the YTM spread diverge, and the divergence depends on the bond's coupon, maturity and price. The flat-curve result of 100.0 bp shows the one setting where the two measures coincide, which is why it is a useful benchmark rather than a typical outcome.
- YTM: one flat rate discounts all payments.
- Z-spread: every payment discounted on the spot curve plus one constant spread.
- Flat 5% curve, 6% 10-year bond at par: z-spread of exactly 100.0 bp, matching its yield advantage.
- Sloped curves: 11.7 bp and 183.1 bp show how far the z-spread can sit from a single flat-rate view.
What a wide z-spread is telling you
A z-spread is not a single number that means one thing. It is the constant spread you must add to every point on the spot curve so that the discounted cash flows match the bond's market price. Because the spot curve already accounts for the timing of each payment, the remaining spread is the market's lump-sum charge for everything the curve does not capture: credit risk, liquidity, and any optionality embedded in the bond. That is why two bonds can show very different z-spreads even when their yields look unremarkable, and why a z-spread calculator is most useful when you read the result alongside the bond's price and the shape of the curve.
The 183.1 bp discount bond is the clearest illustration. A 3% 3-year semiannual bond priced at 95 over a spot curve rising from 2% to 3% needs a z-spread of 183.1 bp to reach its price. The bond pays a coupon below the curve, so it trades at a discount, and the market is demanding a large constant spread on top of the curve to hold it. That 183.1 bp is the compensation investors require for the risk that the bond's promised cash flows do not arrive as scheduled or are worth less in real terms. A wide spread like this is a warning label: the price is low for a reason, and the reason is usually credit or liquidity rather than the shape of the curve.
Contrast that with the 11.7 bp premium bond. A 5% 5-year bond priced at 102 over a spot curve rising from 3% to 4.5% has a z-spread of just 11.7 bp. Here the coupon sits well above the curve, the bond trades at a premium, and the market asks for almost nothing beyond the curve to hold it. The narrow spread says the bond's cash flows are viewed as close to the curve's baseline, with little extra credit or liquidity charge. When you run these numbers through a z-spread calculator, the gap between 183.1 bp and 11.7 bp is the story: same tool, very different risk pricing.
The flat-curve case shows what the spread means when the curve itself is simple. On a flat 5% curve, a 6% 10-year bond at par has a z-spread of exactly 100.0 bp, which is its yield advantage over the curve. With no curve shape to complicate the discounting, the z-spread collapses to the plain yield pickup, making the interpretation transparent. That is the cleanest way to see the logic: the z-spread discounts every payment on the spot curve plus one constant spread, while yield to maturity uses one flat rate for all payments. The z-spread isolates the extra compensation after the curve has done its work.
So when a z-spread looks wide, ask which of the three forces is driving it. Credit risk pushes the spread out when investors doubt repayment. Liquidity pushes it out when a bond is hard to trade. Optionality pushes it out when embedded features, such as calls or puts, change the expected cash flows in ways a single flat yield cannot express. A wide spread is not automatically a bargain, and a narrow spread is not automatically safe. Read the 183.1 bp against the 11.7 bp, check the price and the curve, and treat the spread as a question about what the market is charging for, not as a verdict on its own.
Limits of the two-anchor curve
The z-spread calculator on this page builds its spot curve from two anchors: the 1-year spot rate and the final-year spot rate, with linear interpolation filling in every maturity between them. That is a deliberate simplification, and it is the main thing to keep in mind when you read the output. A fully bootstrapped curve, built step by step from the prices of coupon-bearing bonds at each maturity, will generally not be a straight line between those two points, so the resulting spread can shift slightly from what a two-anchor calculation reports. The numbers below show how much the answer depends on the shape of the curve rather than on the bond's coupon or price alone.
Consider a 5% 5-year bond priced at 102 over a spot curve rising from 3% to 4.5%. Its z-spread comes out to just 11.7 bp. The bond pays a healthy coupon and trades above par, so almost all of its yield is already explained by the rising curve; only a thin slice of extra compensation is left over. A steeper or differently shaped curve between those endpoints would move that 11.7 bp figure, but the small magnitude tells you the bond is priced close to the curve's own story.
Now compare a 3% 3-year semiannual bond at 95 over a 2% to 3% curve. Here the z-spread needed to reach the market price is 183.1 bp. The bond trades at a discount, its coupon sits well below the curve, and the spread has to do real work to reconcile the discounted cash flows with the observed price. Two bonds, two very different spreads, and in both cases the two-anchor interpolation is the frame through which the calculator reads the curve.
The flat-curve case is the cleanest sanity check. On a flat 5% curve, a 6% 10-year bond at par has a z-spread of exactly 100.0 bp, which is simply its yield advantage over the curve. When the curve is flat, interpolation has nothing to smooth over, so the two-anchor shortcut and a bootstrapped curve should agree closely. That makes the flat case a useful benchmark: if a calculator cannot reproduce the 100.0 bp result there, something else is wrong.
The reason the curve construction matters at all is that the z-spread discounts every payment on the spot curve plus one constant spread, while the yield to maturity uses one flat rate for all payments. Because each cash flow is discounted at its own spot rate, the exact spot rates at each maturity feed directly into the spread. A bootstrapped curve can therefore shift results slightly relative to linear interpolation between two anchors. Treat the output as a sound estimate under a stated assumption, not as a claim of exactness.
FAQs
What is the z-spread of a bond?
The z-spread is the constant spread over the whole spot curve that reprices the bond exactly. Rather than testing one yield against one benchmark, it adds the same margin to every spot rate and solves for the margin that makes the present value of the cash flows equal the market price. For the 5% bond at 102, that spread is 11.7 bp.
How does z-spread differ from yield spread?
Yield spread compares one yield against one benchmark point, so it ignores the rest of the curve. Z-spread spreads over every point of the curve at once, adding a single constant margin to all spot rates. That makes z-spread sensitive to the curve's shape, while yield spread depends only on the two points being compared.
Can a z-spread be read off a flat curve?
Yes. On a flat 5% curve the 6% bond at par has a z-spread of exactly 100.0 bp, its coupon advantage. Because every spot rate is the same, the extra 1% coupon over the 5% curve translates directly into a 100.0 bp spread, with no curve shape to complicate the calculation.
Why is the discount bond's z-spread so much wider?
Price 95 against a 3% coupon forces a 183.1 bp spread over the 2% to 3% curve to make the discounted cash flows add up. The bond trades below par, so the spread must be wide enough for the discounted cash flows to equal the lower price. The discount, not the coupon alone, drives the wider spread.
What does z-spread stand for?
Z-spread stands for zero-volatility spread, the spread assuming zero interest-rate volatility. It is calculated without any model of how rates might move, unlike the option-adjusted spread, which accounts for embedded options and rate volatility. For option-free bonds the two can coincide, but they are distinct measures.
Which spread should I use to compare two bonds?
Use z-spread for option-free bonds on the same curve. It is the measure that respects the curve's shape, because it applies one constant margin across every spot rate rather than relying on a single benchmark point. That makes comparisons between bonds more consistent when the curve is steep or uneven.