Learn/Calculators/Loans and bonds
Bond yield to maturity and duration calculator.
A bond YTM calculator finds the yield to maturity of a bond from its price, coupon and years, and shows the current yield and the duration.
Enter the price, the coupon, the years and how often it pays. The calculator solves for the yield to maturity and shows how long and how sensitive the bond is.
- Formula shown
- Free, nothing stored
- Share your result as a link
- Price at that yield
- Face value
Read how bonds are priced and why their prices move with yields.

01How it works
In plain words.
A bond pays fixed coupons and returns the face value at maturity. Its price is the present value of those payments at a yield. The yield to maturity is the yield at which that present value equals the price you pay, found by trial: the calculator narrows it down until the price matches. Duration measures how sensitive the price is. Macaulay duration is the average time to the cash flows, weighted by their present value; modified duration divides it by (1 + yield per period) and gives the approximate percentage fall in price for a one point rise in yield.
The formula
Price = sum over k of C / (1 + y/q)^k + F / (1 + y/q)^NC = F x coupon rate / q; N = years x q paymentsFind y so that Price equals the price paid (bisection)Macaulay duration = sum of (k / q) x PV(payment k) / PriceModified duration = Macaulay duration / (1 + y/q)Current yield = yearly coupon / priceHow the bond yield and duration gets its answer
02Worked example
The default numbers, by hand.
A bond of face value Rs 1,000 with a 7.5% coupon paid half yearly, 5 years to maturity, bought at Rs 950: there are 10 payments of Rs 37.50 and Rs 1,000 at the end. The yield that discounts them to Rs 950 is 8.76% a year. The current yield is 75 / 950 = 7.89%. Macaulay duration is 4.24 years and modified duration 4.06. If the yield rises one point to 9.76% the price falls to Rs 912.37, down 3.96%; if it falls one point the price rises to Rs 989.55, up 4.16%. The two moves differ slightly because the price curve bends (convexity).
| Input | Value |
|---|---|
| Face value | ₹1,000 |
| Price paid | ₹950 |
| Coupon rate a year | 7.5% |
| Years to maturity | 5 years |
| Coupon paid | Half yearly |
| Result | Value |
|---|---|
| Yield to maturity | 8.76% |
| Current yield | 7.89% |
| Macaulay duration | 4.2 years |
| Modified duration | 4.06 |
| Price if the yield rises 1 point | ₹912 |
| Price if the yield falls 1 point | ₹990 |
| Total coupons to maturity | ₹375 |
03Key concepts
What to know before you use it.
Price and yield move opposite ways
When yields in the market rise, a bond with a fixed coupon is worth less, and when they fall it is worth more. The longer the bond and the lower the coupon, the larger the move. Duration puts a number on this.
What the yield assumes
The yield to maturity assumes you hold to maturity, receive every payment and reinvest each coupon at the same yield. A bond that can default or be called early does not guarantee that yield. The calculator takes the price on a coupon date; a price between coupon dates includes accrued interest, which is not modelled.
Good to know
- A bond at par (price equals face value) has a yield equal to its coupon.
- A zero coupon bond’s Macaulay duration equals its years to maturity.
- Use the price your platform shows, clean or dirty, and say which: this calculator expects a clean price on a coupon date.
04Assumptions
What the calculator assumes.
- Price taken on a coupon date; payments on time; no default, call or tax.
- Years times payments a year is rounded to a whole number of payments.
- Duration is for small yield changes; the exact repriced values are shown for one point up and down.
05Questions
Asked about the Bond yield and duration.
What is yield to maturity?
The yearly rate at which the present value of all the bond’s coupons and its face value equals the price you pay. It assumes you hold to maturity and reinvest the coupons at that rate.
What is the difference between Macaulay and modified duration?
Macaulay duration is the weighted average time, in years, until the cash flows arrive. Modified duration is Macaulay divided by (1 + yield per period) and estimates the percentage change in price for a one point change in yield.
How does the bond YTM calculator work?
Enter the face value, the price, the coupon, the years and how often it pays. The calculator finds the yield that discounts the cash flows to the price, then shows Macaulay and modified duration.
Community
Join my WhatsApp group.
Scan the code, fillFill one short form, and join my WhatsApp group. Slides, sources, factsheets and the rebalance logs live there, and members join a daily Google Meet with me.
06Keep going
Learn the idea, see it applied.
Related calculators
Education only, not investment advice. RupeeCase (QC Alpha Technologies Pvt Ltd) is not a fund, a PMS or a SEBI registered investment adviser. Model returns are back tested, not a promise; figures carry the date checked.
Explore next
Learn the idea behind the numbers.
- Blog noteLargecap Hybrid: a buffer is a shock absorber, not a shieldStrategy notes, a short note
- Blog noteLarge Mid Hybrid: the debt sleeve that did two jobsStrategy notes, a short note
- Free module 6.7Bonds and Fixed Income in India8 min read
- Free module 11.2Tax Treatment: MFs, ETFs, SGBs, Bonds & F&O10 min read
- StrategyAllcap Multi Asset strategyNifty Total Market, 40 stocks, every 2 weeks
- CalculatorEMI with prepaymentFree, with the formula and a worked example