How to use this calculator
- Enter Market price ($)。
- Enter Face value ($)。
- Enter Coupon rate (%)。
- Enter Years left (yrs)。
Leave any field blank and the calculator solves for it from the remaining values — every quantity is reversible.
The calculator then returns: YTM。
What is it
Yield to Maturity — Annualized return if bought at market price and held to maturity. Equity and valuation calculators convert company fundamentals — earnings, book value, dividends, cash flow — into comparable multiples and intrinsic values. The core question it answers is: YTM. Price 950, face 1000, 5% coupon, 10y → ~5.66%.
Formula
| Variable | Inputs | Unit |
|---|---|---|
price | Market price | $ |
face | Face value | $ |
couponRate | Coupon rate | % |
years | Years left | yrs |
ytm | YTM | % |
(function(){var c=couponRate/100*face,target=price,lo=-0.5,hi=1.0,mid,f;for(var k=0;k<200;k++){mid=(lo+hi)/2;f=-target;for(var t=1;t<=years;t++){f+=(c+(t===years?face:0))/Math.pow(1+mid,t);}if(f>0){lo=mid;}else{hi=mid;}}return ((lo+hi)/2)*100;})()The relationship is solved in every direction, so any one unknown field can be derived.
Worked example
Using the default inputs:
- Market price = 950 $
- Face value = 1000 $
- Coupon rate = 5 %
- Years left = 10 yrs
Formula used: (function(){var c=couponRate/100*face,target=price,lo=-0.5,hi=1.0,mid,f;for(var k=0;k<200;k++){mid=(lo+hi)/2;f=-target;for(var t=1;t<=years;t++){f+=(c+(t===years?face:0))/Math.pow(1+mid,t);}if(f>0){lo=mid;}else{hi=mid;}}return ((lo+hi)/2)*100;})()
Answer:
- YTM = 5.67 %
Example 1 (default inputs):Suppose Market price = 950 $, Face value = 1,000 $, Coupon rate = 5 %, Years left = 10 yrs; then giving YTM = 5.67 %.
Example 2 (one input changed):If you change Market price to 1,425,giving YTM = 0.6069 %.
Additional information
Assumptions and limitations
- Multiples are relative pricing tools: sector, accounting policy and cycle position systematically shift what counts as "normal". No single metric constitutes investment advice.
- Good for: getting a directionally correct order of magnitude quickly, or comparing two scenarios.
- Not good for: using it as the sole basis for a decision, or for official filings, contract pricing and legal documents — those need a full model with your actual clauses and local rules.