TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Finance & Economics · Fixed Income · Fixed Income

Bond Yield to Maturity Calculator

Calculates the yield to maturity (YTM) of a bond using the approximate YTM formula and Newton-Raphson iteration for precise results.

Calculator

Advertisement

Formula

C = annual coupon payment (face value × coupon rate), F = face value (par value) of the bond, P = current market price of the bond, n = number of years to maturity. This approximation formula provides a close estimate; the calculator also solves the exact YTM numerically using Newton-Raphson iteration on the full bond pricing equation: P = \sum_{t=1}^{n} \frac{C}{(1+YTM)^t} + \frac{F}{(1+YTM)^n}.

Source: CFA Institute Fixed Income curriculum; Fabozzi, F.J. — Fixed Income Mathematics, Analysis, and Valuation (4th ed.)

How it works

Yield to maturity represents the internal rate of return (IRR) of a bond's cash flow stream. When you buy a bond below par (at a discount), your YTM exceeds the coupon rate because you also gain the difference between purchase price and face value at maturity. Conversely, buying above par (at a premium) means your YTM falls below the coupon rate, since you lose that premium at maturity. Understanding this relationship is foundational to fixed income analysis.

The exact YTM is solved by finding the discount rate r that satisfies the full bond pricing equation: the present value of all coupon payments plus the present value of the face value must equal the current market price. This is expressed as P = Σ[C / (1+r)^t] + F / (1+r)^n across all coupon periods. Because this equation has no closed-form algebraic solution, this calculator uses Newton-Raphson numerical iteration — converging on the precise rate within microseconds. An approximate formula (C + (F−P)/n) / ((F+P)/2) is also shown for quick estimation and study purposes.

Practical applications include comparing corporate bonds to government securities, evaluating whether a bond is fairly priced relative to current interest rate benchmarks, assessing portfolio duration and interest rate risk, and constructing laddered bond portfolios. Fixed income analysts rely on YTM to assess credit spreads — the excess yield above a risk-free benchmark — as a proxy for default risk and market sentiment. Knowing the YTM also helps investors determine whether a bond's expected return justifies its credit and liquidity risk.

Worked example

Scenario: A corporate bond has a face value of $1,000, an annual coupon rate of 5%, a current market price of $950, and 10 years to maturity, paying coupons semi-annually.

Step 1 — Coupon payment per period: Annual coupon = $1,000 × 5% = $50. Semi-annual coupon = $50 / 2 = $25 per period. Total periods = 10 × 2 = 20.

Step 2 — Approximate YTM: Using the approximation formula: (50 + (1000 − 950) / 10) / ((1000 + 950) / 2) = (50 + 5) / 975 = 55 / 975 ≈ 5.641% annually.

Step 3 — Exact YTM via Newton-Raphson: We solve for the semi-annual rate r such that 950 = Σ[25 / (1+r)^t, t=1 to 20] + 1000 / (1+r)^20. The numerical solution converges to a semi-annual rate of approximately 2.797%, giving an annualized YTM of approximately 5.594%.

Step 4 — Current Yield: Current yield = $50 / $950 = 5.263%. Note that YTM (5.594%) exceeds the current yield (5.263%) because YTM accounts for the capital gain of $50 realized at maturity.

Step 5 — Total Dollar Return: Total coupon income = $50 × 10 = $500. Capital gain = $1,000 − $950 = $50. Total return = $500 + $50 = $550.

Limitations & notes

The YTM calculation makes several important assumptions that may not hold in practice. First, YTM assumes all coupon payments are reinvested at the same rate as the YTM itself — in reality, reinvestment rates fluctuate with market conditions, causing realized returns to diverge from YTM. This is known as reinvestment risk, and it is more pronounced for long-duration, high-coupon bonds. Second, this calculator assumes the bond is held to maturity with no default; for callable bonds, yield to call (YTC) is a more appropriate metric. Third, the model does not account for taxes on coupon income or capital gains, which significantly affect after-tax returns. Fourth, accrued interest (settlement between coupon dates) is not modeled here — real bond trades involve dirty prices that include accrued interest. Fifth, for inflation-linked bonds (TIPS), real YTM differs from nominal YTM by the expected inflation rate. Always consider YTM alongside duration, convexity, credit rating, and liquidity when making investment decisions.

Frequently asked questions

What is yield to maturity and how is it different from the coupon rate?

The coupon rate is the fixed annual interest payment as a percentage of face value, set when the bond is issued and unchanged over its life. Yield to maturity is the total annualized return if you buy the bond at today's market price and hold it to maturity. When a bond trades at a discount, YTM exceeds the coupon rate; when it trades at a premium, YTM is lower than the coupon rate. YTM is the more useful metric because it reflects the actual cost of the bond in the market.

Why does bond price move opposite to yield?

Bond prices and yields are inversely related because of how present value works. When interest rates rise, the fixed coupon payments of an existing bond become less attractive compared to new bonds offering higher rates, so its price falls until its effective yield matches the new market rate. Conversely, when rates fall, existing bonds with higher coupons become more valuable, pushing their prices up and yields down. This inverse relationship is the central dynamic of fixed income markets.

What is the difference between YTM and current yield?

Current yield is simply the annual coupon payment divided by the current market price — it measures only the income component of a bond's return and ignores any capital gain or loss at maturity. YTM is more comprehensive: it accounts for both coupon income and the gain or loss from holding the bond to par value at maturity. For a bond trading at a discount, YTM will always be higher than current yield; for a premium bond, YTM will be lower.

What does it mean when a bond trades at a premium vs. a discount?

A bond trades at a premium when its market price exceeds its face value, which happens when the bond's coupon rate is higher than current market interest rates — investors pay up for the above-market income. A bond trades at a discount when its market price is below face value, meaning its coupon rate is lower than current rates. At a discount, the investor is compensated through a capital gain (receiving $1,000 at maturity despite paying less), which is reflected in a higher YTM.

Is yield to maturity the same as the bond's actual return?

YTM equals actual realized return only if all coupons are reinvested at precisely the YTM rate and the bond is held to maturity without default. In practice, reinvestment rates vary, so actual returns differ. For callable bonds, the issuer may redeem early, making yield to call (YTC) or yield to worst (YTW) more relevant. YTM is best understood as a standardized comparison metric rather than a guaranteed return figure.

Last updated: 2025-01-15 · Formula verified against primary sources.