Yield to Maturity Calculator
Solve for a bond's yield to maturity from its price, face value, coupon, maturity and payment frequency, with the residual printed.
What this page does
Yield to maturity is the single discount rate that makes the present value of a bond's coupons and principal equal its price.
How to use it
Enter this sample with the defaults shown:
950
Press Run. The page gives:
Price: 950.00 per 1000.00 face
Coupon: 5 % per year, paid 2× a year
Maturity: 10 years (20 periods)
YTM: 5.6617 % per year (nominal, 2 compounding periods)
Current: 5.2632 % per year (coupon ÷ price, ignores capital gain or loss)
Check: price at that yield differs by 5.50e-9
Basis: exact schedule; solve by bracketed bisection between -99.99 % and 500 %
The formula and its basis
Find the yield y where the sum of every cash flow discounted at y ÷ payments per year equals the price; the page scans for a sign change and bisects it.
The answer is a nominal annual yield compounded at the payment frequency, and the price is the full price with no accrued interest.
What it is not
It is arithmetic on the numbers you enter, not financial advice: no product, rate or course of action is recommended. Nothing is uploaded, stored or logged.
Yield to maturity is the single discount rate that makes the present value of a bond's coupons and principal equal its price.
The rule this page applies: Find the yield y where the sum of every cash flow discounted at y ÷ payments per year equals the price; the page scans for a sign change and bisects it.
Basis: The answer is a nominal annual yield compounded at the payment frequency, and the price is the full price with no accrued interest.
Worked example: the sample values below, with the defaults, give exactly the output recorded in What to Expect.
How to use the Yield to Maturity Calculator
Enter bond price per bond in the box, set the options beside it, then press Run. The answer appears beside the form and re-runs on the same input.
Every number in the answer follows from your inputs and the assumptions stated below; the page does not choose a rate for you.
The worked example uses "950" with the defaults shown, and its exact output is printed in What to Expect.
The formula, its basis and its refusals
Find the yield y where the sum of every cash flow discounted at y ÷ payments per year equals the price; the page scans for a sign change and bisects it.
The answer is a nominal annual yield compounded at the payment frequency, and the price is the full price with no accrued interest. Money prints to two decimals, percentages to four, and intermediate values are never rounded.
It refuses a price or face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and a price no yield in the scanned range can produce.
What this page is not
It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.
Where the tool is the wrong choice: Callable bonds, where yield to worst differs; Prices that include accrued interest.
What to Expect
Best for
- Comparing bonds quoted at different prices
- Checking a broker's quoted yield
Not ideal for
- Callable bonds, where yield to worst differs
- Prices that include accrued interest
What this tool keeps
- The numbers exactly as you entered them
- The same answer on every run
- Nothing sent, stored or logged
What may need cleanup
- Rates entered as fractions rather than percentages: enter 5 for 5 %
- A currency symbol pasted beside a number, which the page refuses by name
Common errors
- It refuses a price or face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and a price no yield in the scanned range can produce.
- A non-numeric value, which the page names rather than silently treating as zero
Example use cases
- Working out the yield on a bond bought at a discount
- Comparing a bond's yield with a deposit rate
Sample input
950
Sample output
Price: 950.00 per 1000.00 face Coupon: 5 % per year, paid 2× a year Maturity: 10 years (20 periods) YTM: 5.6617 % per year (nominal, 2 compounding periods) Current: 5.2632 % per year (coupon ÷ price, ignores capital gain or loss) Check: price at that yield differs by 5.50e-9 Basis: exact schedule; solve by bracketed bisection between -99.99 % and 500 %
Who this is for
- investors
- students
Frequently asked questions
What formula does this page use?
Find the yield y where the sum of every cash flow discounted at y ÷ payments per year equals the price; the page scans for a sign change and bisects it.
What does it refuse?
It refuses a price or face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and a price no yield in the scanned range can produce.
Is this financial advice?
It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.
What rate basis and rounding does it use?
The answer is a nominal annual yield compounded at the payment frequency, and the price is the full price with no accrued interest. Money prints to two decimals, percentages to four, and intermediate values are never rounded.
How is the yield found?
The page scans yields from −99.99 % to 500 % for a change of sign in price minus the entered price, then bisects that bracket. It prints the residual so you can see how close the answer is.
Why does the current yield differ?
Current yield is the annual coupon divided by the price and ignores the gain or loss from buying below or above face value. Yield to maturity includes that gain or loss, so the two agree only at par.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.