RupeeCase | Systematic Quantitative Investing Terminal by QC AlphaRupeeCase | Systematic Quantitative Investing Terminal by QC AlphaRupeeCase | Systematic Quantitative Investing Terminal by QC AlphaRupeeCase | Systematic Quantitative Investing Terminal by QC Alpha
Start free

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
Coupon paid
Yield to maturity8.76%a year, compounded half yearly
Current yield7.89%the yearly coupon over the price
Macaulay duration4.2 yearsthe weighted average time to the cash flows
Modified duration4.06about this % fall in price for a 1 point rise in yield
Price if the yield rises 1 point₹912−3.96% from the price paid
Price if the yield falls 1 point₹9904.16% from the price paid
Total coupons to maturity₹37510 payments of ₹38
₹0₹500₹1,000₹1,500₹2,0005.8%6.8%7.8%8.8%9.8%10.8%11.8%
  • Price at that yield
  • Face value
Price taken on a coupon date, so there is no accrued interest. 10 coupons of ₹38 and ₹1,000 at the end. The yield is the rate that makes the cash flows add up to the price; it assumes every coupon is reinvested at that same yield.

Read how bonds are priced and why their prices move with yields.

An isometric field of teal blocks of different heights on navy

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 / price

How the bond yield and duration gets its answer

How the bond yield and duration gets its answerHow the bond yield and duration gets its answer. 1. Price = sum over k of C / (1 + y/q)^k + F / (1 + y/q)^N 2. C = F x coupon rate / q; N = years x q payments 3. Find y so that Price equals the price paid (bisection) 4. Macaulay duration = sum of (k / q) x PV(payment k) / Price 5. Modified duration = Macaulay duration / (1 + y/q) 6. Current yield = yearly coupon / price01Price = sum over k of C / (1 +y/q)^k + F / (1 + y/q)^N02C = F x coupon rate / q; N = yearsx q payments03Find y so that Price equals theprice paid (bisection)04Macaulay duration = sum of (k / q)x PV(payment k) / Price05Modified duration = Macaulayduration / (1 + y/q)06Current yield = yearly coupon /price
The formula lines above, in the order the calculator applies them.

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).

InputValue
Face value₹1,000
Price paid₹950
Coupon rate a year7.5%
Years to maturity5 years
Coupon paidHalf yearly
ResultValue
Yield to maturity8.76%
Current yield7.89%
Macaulay duration4.2 years
Modified duration4.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.