Yield to Maturity (YTM) Calculator
Yield to maturity (YTM) is the annualized rate of return anticipated on a bond if held to maturity, accounting for coupon payments and principal repayment. It is the internal rate of return that equates the present value of the bond's future cash flows to its current price.
This tool provides two options: a numerical solver that finds the exact IRR for the bond price equation and a standard approximation useful for quick estimates. Use the numerical method for pricing, risk calculations, or regulatory reporting; use the approximation only for rough comparisons.
Governance
Record c919334fb8bc • Reviewed by Fidamen Standards Committee
Finds the internal rate of return that sets the present value of future coupon and principal payments equal to the bond price. This method uses a root-finding algorithm on the price equation and returns an annualized yield. Numerical tolerance, iteration limits, and day-count conventions affect results. The front-end implementation must perform iterative solving (bisection, secant, or Newton-Raphson) and enforce safeguards for convergence.
Inputs
Results
Yield to maturity (annual, nominal)
—
Yield per period (numeric)
—
Coupon payment per period
$2.50
Total periods
20
| Output | Value | Unit |
|---|---|---|
| Yield to maturity (annual, nominal) | — | % |
| Yield per period (numeric) | — | % |
| Coupon payment per period | $2.50 | USD |
| Total periods | 20 | periods |
Visualization
Methodology
Exact (numerical) method: solve the present-value equation sum_{t=1..N} C/(1+y)^t + F/(1+y)^N = P for the periodic yield y, then annualize by multiplying by payment frequency. The front-end must use a stable root-finding algorithm, limit iterations, and enforce a convergence tolerance.
Approximate (rule-of-thumb) method: approximate periodic yield = [C + (F - P)/N] / [(F + P)/2], then annualize. This linearized approximation is fast but loses accuracy when coupons or yields are large or when price deviates markedly from par.
Accuracy, rounding, and numeric stability: implement IEEE 754 compliant arithmetic for consistent floating-point results, and follow numerical best-practices (bracketing, fallback to bisection if Newton steps diverge). Document solver tolerances and iteration limits in any downstream report.
Worked examples
Example: Face 100, price 95, coupon 5% paid semiannually (2), years 10. C = 2.5, N = 20. Approx periodic yield = (2.5 + (100-95)/20)/((100+95)/2); approximate annual YTM is periodic*2.
Exact method numerically solves the price equation and will produce a slightly different annualized YTM; use the exact method for valuation or comparison to market YTM quotes.
F.A.Q.
Do I enter price as a percent or currency?
Enter price in the same units as face value. For a typical market quote where face=100, enter 95 for a price quoted at 95.00. The calculator assumes a clean price; accrued interest is not added automatically.
Which method should I use?
Use the numerical (Exact) solver for pricing, risk modeling, or when precision is required. Use the Approximate method for quick, back-of-envelope comparisons. The approximation can differ materially for deep discounts/premiums or high coupon rates.
How accurate is the numerical solver?
Accuracy depends on the chosen numeric tolerance and floating-point arithmetic. Follow IEEE 754 guidelines for floating-point handling, limit iterations to avoid runaway loops, and report solver tolerance. Expect small rounding differences across implementations.
Does this handle callable or putable bonds?
No. Call and put features change cash flow timing and must be modeled with option-aware valuation (e.g., option-adjusted spread models). This calculator handles plain vanilla fixed-coupon bonds only.
Are day-count conventions considered?
This calculator assumes full-period coupon timing based on 'payments per year' and does not apply day-count convention adjustments. For settlement-to-maturity date calculations adjust cash flows externally or use an instrument-specific calculator.
Sources & citations
- IEEE Standard for Floating-Point Arithmetic (IEEE 754) — https://standards.ieee.org/standard/754-2019.html
- International Organization for Standardization — ISO 31000 Risk Management — https://www.iso.org/iso-31000-risk-management.html
- National Institute of Standards and Technology (NIST) — https://www.nist.gov
- U.S. Securities and Exchange Commission — Bonds and Bond Basics — https://www.sec.gov
- Occupational Safety and Health Administration (OSHA) — https://www.osha.gov
- SEC — Securities and Exchange Commission Yield Calculation Guidance — https://www.sec.gov/rules/proposed/482.txt
- FINRA — Fixed Income and Bonds — https://www.finra.org/investors/investing/investment-products/bonds
- U.S. Treasury — Treasury Securities — https://www.treasurydirect.gov/marketable-securities/
Further resources
Versioning & Change Control
Audit record (versions, QA runs, reviewer sign-off, and evidence).
Record ID: c919334fb8bcWhat changed (latest)
v1.0.0 • 2025-11-22 • MINOR
Initial publication and governance baseline.
Why: Published with reviewed formulas, unit definitions, and UX controls.
Public QA status
PASS — golden 25 + edge 120
Last run: 2026-01-23 • Run: golden-edge-2026-01-23
Versioning & Change Control
Audit record (versions, QA runs, reviewer sign-off, and evidence).
What changed (latest)
v1.0.0 • 2025-11-22 • MINOR
Initial publication and governance baseline.
Why: Published with reviewed formulas, unit definitions, and UX controls.
Public QA status
PASS — golden 25 + edge 120
Last run: 2026-01-23 • Run: golden-edge-2026-01-23
Engine
v1.0.0
Data
Baseline (no external datasets)
Content
v1.0.0
UI
v1.0.0
Governance
Last updated: Nov 22, 2025
Reviewed by: Fidamen Standards Committee (Review board)
Credentials: Internal QA
Risk level: low
Reviewer profile (entity)
Fidamen Standards Committee
Review board
Internal QA
Entity ID: https://fidamen.com/reviewers/fidamen-standards-committee#person
Semantic versioning
- MAJOR: Calculation outputs can change for the same inputs (formula, rounding policy, assumptions).
- MINOR: New features or fields that do not change existing outputs for the same inputs.
- PATCH: Bug fixes, copy edits, or accessibility changes that do not change intended outputs except for previously incorrect cases.
Review protocol
- Verify formulas and unit definitions against primary standards or datasets.
- Run golden-case regression suite and edge-case suite.
- Record reviewer sign-off with credentials and scope.
- Document assumptions, limitations, and jurisdiction applicability.
Assumptions & limitations
- Uses exact unit definitions from the Fidamen conversion library.
- Internal calculations use double precision; display rounding follows the unit's configured decimal places.
- Not a substitute for calibrated instruments in regulated contexts.
- Jurisdiction-specific rules may require official guidance.
Change log
v1.0.0 • 2025-11-22 • MINOR
Initial publication and governance baseline.
Why: Published with reviewed formulas, unit definitions, and UX controls.
Areas: engine, content, ui • Reviewer: Fidamen Standards Committee • Entry ID: 7e64083ce1b3
- https://standards.ieee.org/standard/754-2019.html
- https://www.finra.org/investors/investing/investment-products/bonds
- https://www.iso.org/iso-31000-risk-management.html
- https://www.nist.gov
- https://www.osha.gov
- https://www.sec.gov
- https://www.sec.gov/rules/proposed/482.txt
- https://www.treasurydirect.gov/marketable-securities/
