Home / Glossary / Yield to Maturity (YTM)

Yield to Maturity (YTM)

The annualized return if you hold the bond to maturity, assuming all coupons are reinvested at the same rate.

Yield to maturity (YTM) is the bond's internal rate of return — the single discount rate that makes the present value of all future cash flows (coupons and principal) equal the bond's dirty price. Think of it as the bond's 'all-in' yield, but with an important catch: YTM assumes you can reinvest every coupon payment at the same YTM rate, which rarely happens in practice. Because YTM appears inside the discounting formula, there's no closed-form solution — it's solved numerically using methods like Newton-Raphson or bisection, similar to IRR calculations in Excel. Despite its limitations, YTM is the industry standard for comparing bonds because it captures both income and capital gains/losses in a single number.

Formula
Pdirty=t=1nCFt(1+ym)tP_{\text{dirty}} = \sum_{t=1}^{n} \frac{CF_t}{\left(1 + \frac{y}{m}\right)^{t}}
Where
PdirtyP_{\text{dirty}}=Dirty (full) price
CFtCF_t=Cash flow at period t
yy=Yield to maturity
mm=Coupon periods per year
nn=Total number of periods
Variables
yYield to maturity being solved for
P(y)Dirty price as a function of yield
P_{target}Target dirty price = clean + accrued
Assumptions
  • Initial bracket: -5% to +50% yield
  • Bracket expands (doubles upper bound) up to 8 times if needed
  • Maximum 80 iterations for convergence
  • Tolerance: 10^-10 price error
vs. Industry Tools
Excel YIELD()Uses Newton-Raphson; may differ at edge cases
Bloomberg YLDGenerally matches for standard bonds