How to Calculate YTM in Excel: Formula, Bond Price and Solved Examples

Yield to Maturity (YTM) is the annual return you earn by buying a bond at today's price and holding it until maturity. In Excel, the quickest way to calculate it is =RATE(years, coupon, -price, face value). For example, a ₹1,000 bond with an 8% coupon, 3 years left and a price of ₹950 has a YTM of about 10%. Use YIELD when exact dates are given, IRR for a list of cash flows, and PV or PRICE to find a bond's price. This guide also covers the YTM approximation formula, YTM vs IRR vs current yield, duration, common Excel mistakes and solved practice questions for NISM XV and other NISM exams.

What Is Yield to Maturity (YTM)?

Yield to Maturity (YTM) is the annual return you earn if you buy a bond at today's market price, receive every coupon on time and hold the bond until it is repaid. It assumes that each coupon is reinvested at the same rate.

Put simply, YTM is the single interest rate that makes the present value of all the bond's future payments equal to its current price.

This is why bond prices and yields always move in opposite directions. When yields rise, future payments are worth less today, so the price falls. When yields fall, the price rises.

YTM gives a fuller picture than the coupon rate or current yield, because it also counts the gain or loss you make when the bond is repaid at face value.

A bond bought at ₹950 and repaid at ₹1,000 gives you a ₹50 gain on top of the coupons, and YTM includes it.

The YTM Formula

There is no direct formula that gives the exact YTM. It is found by trial and error, testing different rates until the present value of the cash flows matches the price. Excel does this in a fraction of a second, which is why it is the preferred tool.

When you need a quick estimate without Excel, use the YTM approximation formula:

YTM ≈ [C + (F − P) ÷ n] ÷ [(F + P) ÷ 2]

  • C = annual coupon

  • F = face value

  • P = current price

  • n = years to maturity

For our example bond (C = ₹80, F = ₹1,000, P = ₹950, n = 3):

[80 + (1,000 − 950) ÷ 3] ÷ [(1,000 + 950) ÷ 2] = 96.67 ÷ 975 = 9.91%

The exact answer is 10.01%, so the approximation is close enough to pick the right option in most MCQs. It is also a useful way to sanity-check an Excel result.

How to Calculate YTM in Excel: 3 Methods

All three methods below give the same answer. The right one depends on the information the question gives you.

Method Use it when Formula for our example Result
RATE You know the years, coupon, price and face value =RATE(3, 80, -950, 1000) 10.01%
YIELD Exact settlement and maturity dates are given =YIELD(DATE(2026,1,1), DATE(2029,1,1), 8%, 95, 100, 1) 10.01%
IRR You have the cash flows listed year by year =IRR(B2:B5) 10.01%

Method 1: RATE (best for most exam questions)

RATE is the fastest option when a question simply states the coupon, price, face value and time to maturity. Enter the number of years, the annual coupon, the price as a negative number (because you pay it out) and the face value.

=RATE(3, 80, -950, 1000) → 10.01%

If the bond pays coupons twice a year, switch to half-yearly inputs and double the result: =RATE(6, 40, -950, 1000) × 2 gives about 10.0%.

Method 2: YIELD (when dates are given)

YIELD is built for real bonds with specific dates. It takes the settlement date, maturity date, coupon rate, price per ₹100, redemption value per ₹100 and the number of coupons a year.

=YIELD(DATE(2026,1,1), DATE(2029,1,1), 8%, 95, 100, 1) → 10.01%

Note that the price is entered as 95, not 950, because YIELD works per ₹100 of face value.

Method 3: IRR (using cash flows)

IRR is very easy to use for YTM, provided you set out the cash flows correctly. List the purchase price as a negative outflow, then each year's coupon, and add the face value to the final year.

Cell Year Cash flow
B2 0 -950
B3 1 80
B4 2 80
B5 3 1,080

=IRR(B2:B5) → 10.01%

If the cash flows fall on irregular dates, use XIRR with a column of dates alongside the amounts.

How to Calculate Bond Price in Excel

Calculating price is the reverse of calculating YTM: you know the market yield and want to find what the bond should cost.

Example: a 5-year bond with a ₹1,000 face value pays a 9% annual coupon (₹90). The market yield is 8%.

  • PV: =PV(8%, 5, 90, 1000) → -1,039.93, so the fair price is ₹1,039.93. The result is negative because it is the amount you pay.

  • PRICE: =PRICE(DATE(2026,1,1), DATE(2031,1,1), 9%, 8%, 100, 1) → 103.99 per ₹100, which is ₹1,039.93 for a ₹1,000 bond.

The bond sells at a premium because its 9% coupon is higher than the 8% the market requires.

If the coupon were lower than the market yield, it would sell at a discount. If the two were equal, it would sell at face value.

YTM vs IRR vs Current Yield

These three measures are often confused, and exams like to test the difference.

Measure What it shows Our ₹950 bond
Current yield Annual coupon ÷ price; ignores the gain or loss at maturity 8.42%
YTM Full annual return if held to maturity, including the repayment gain 10.01%
IRR The general return measure for any set of cash flows; for a bond held to maturity, it equals YTM 10.01%

In short, YTM is the IRR of a bond. Current yield is only part of the story, which is why it is lower here: it ignores the ₹50 you gain at maturity.

Duration: How Bond Prices React to Yield Changes

Once you can calculate price and yield, the next step is measuring how sensitive a bond's price is to interest-rate changes.

That is what duration tells you.

  • Macaulay duration is the weighted average time, in years, at which you receive the bond's cash flows. In Excel, use DURATION.

  • Modified duration estimates the percentage change in price for a 1% change in yield. In Excel, use MDURATION.

For our 5-year, 9% bond at an 8% yield:

  • =DURATION(DATE(2026,1,1), DATE(2031,1,1), 9%, 8%, 1) → 4.26 years

  • =MDURATION(DATE(2026,1,1), DATE(2031,1,1), 9%, 8%, 1) → 3.94

The rule of thumb for exams is:

% change in price ≈ − Modified Duration × Change in yield

So if yields rise by 1%, this bond's price would fall by roughly 3.94%.

Excel Cheat Sheet for Fixed-Income Calculations

Fixed-income questions can look intimidating at first, with prices, coupons, yields and maturities all in one question.

Once you know which function to reach for, they become far more manageable.

What you need Excel function
Yield to maturity RATE / YIELD / IRR
Bond price PV / PRICE
Current yield Annual coupon ÷ price
Macaulay duration DURATION
Modified duration MDURATION
Present value PV
Future value FV
Net present value NPV
Internal rate of return IRR / XIRR
Accrued interest ACCRINT

You don't need to be an Excel expert. You only need to know which function fits the question, which inputs to enter, how to lay out cash flows and dates, and how to read the result. Knowing the difference between PRICE, YIELD, DURATION and MDURATION is far more useful than memorising long calculation steps.

Common Mistakes to Avoid

  • Entering the price as a positive number: In RATE or IRR. The price is an outflow and must be negative, or Excel returns an error.

  • Forgetting the face value: In the final cash flow when using IRR.

  • Entering 950 instead of 95: In YIELD or PRICE, which work per ₹100 of face value.

  • Mixing annual and half-yearly inputs: If coupons are paid twice a year, halve the coupon, double the periods and double the final rate.

  • Confusing current yield with YTM: A favourite trap in MCQ options.

Which NISM Exams Test These Calculations?

Bond and fixed-income calculations appear in several NISM certification exams:

  • NISM Series XV – Research Analyst: bond valuation, yields, interest-rate risk and fixed-income analysis.

  • NISM Series X-A – Investment Adviser Level 1: bond valuation, YTM, duration and fixed-income calculations.

  • NISM Series V-D – SIF Distributors: debt fund concepts, bond valuation, yield and interest-rate sensitivity.

  • NISM Series IV – Interest Rate Derivatives: interest-rate concepts, bond pricing and duration.

What you can use in the exam

At NISM test centres, a spreadsheet application is provided on the exam computer where the exam requires it, and you may bring your own silent calculator with no connectivity.

In remote proctored exams, separate calculators are not allowed and you must use the on-screen calculator.

Since the tools vary by exam and mode, it pays to understand the formulas as well as the Excel functions.

My advice on calculators

Students often ask me whether they should do every calculation in Excel or on the on-screen calculator. My answer is no.

Doing every small sum on screen slows you down and leads to avoidable errors, especially if you have practised at home on your phone and then face an unfamiliar calculator on exam day.

If you are taking the exam at a test centre, a simple regular calculator costing ₹100–₹250 makes a real difference.

Use it from the first day of your preparation for all your quick arithmetic, and keep Excel for functions such as RATE, PRICE and DURATION.

When you practise with the same tools you will use in the exam, your speed, accuracy and confidence all improve.

Once these functions feel familiar, the next step is to practise under real exam conditions.

The NISM XV Research Analyst Mock Test gives you timed, exam-style questions, so you can check your Excel and calculator speed well before exam day.

NISM-Style Practice Questions with Solutions

These are original practice questions, not past exam questions. Try each one in Excel before checking the solution.

Question 1: Yield to Maturity

A bond with a face value of ₹1,000 pays an 8% annual coupon and has three years left to maturity. It is trading at ₹950. What is its approximate YTM?

  • (a) 8.0%

  • (b) 8.4%

  • (c) 10.0%

  • (d) 11.5%

Answer: (c) 10.0%

=RATE(3, 80, -950, 1000) = 10.01%. Option (b) is the current yield (80 ÷ 950), which ignores the gain at maturity.

Question 2: Bond Price

A five-year bond with a face value of ₹1,000 pays a 9% annual coupon. If the market yield is 8%, what is its fair price?

  • (a) ₹960.07

  • (b) ₹1,000.00

  • (c) ₹1,039.93

  • (d) ₹1,090.00

Answer: (c) ₹1,039.93

=PV(8%, 5, 90, 1000) = -1,039.93. The bond trades at a premium because its coupon is above the market yield.

Question 3: Modified Duration

A bond has a modified duration of 4.2. If its yield rises by 0.50%, what is the approximate change in its price?

Answer: about −2.1%

−4.2 × 0.50% = −2.1%

Question 4: Interest Rate Sensitivity

A bond has a modified duration of 6.5. If market yields rise by 1.2%, what is the approximate change in its price?

Answer: about −7.8%

−6.5 × 1.2% = −7.8%. Questions like this come up often, so make sure you are comfortable with them.

Question 5: Accrued Interest

An investor buys a ₹1,000 bond with an 8% annual coupon, three months after the last coupon date. How much accrued interest does the buyer pay the seller?

Answer: ₹20

₹80 × 3 ÷ 12 = ₹20 (30/360 day count). In Excel, use ACCRINT when exact issue, coupon and settlement dates are given.

Conclusion

Calculating YTM and bond price in Excel comes down to matching the right function to the information you have.

Use RATE for straightforward questions, YIELD and PRICE when dates are given, and IRR or XIRR when you are working from a list of cash flows.

Always enter the price as a negative outflow, include the face value in the final cash flow, and use the approximation formula to check that your answer makes sense.

Once you add duration to the picture, you can also judge how a bond's price will react when interest rates move.

Don't be afraid of fixed-income numericals. Understand the concept, learn the function and practise until it feels routine.

With a little hands-on work, this can become one of the most scoring parts of your NISM preparation.

Related Reads

Sources

Prof. Sheetal Kunder

Prof. Sheetal Kunder
SEBI® Research Analyst. Registration No. INH000013800 M.Com, M.Phil, B.Ed, PGDFM, Teaching Diploma (in Accounting & Finance) from Cambridge International Examination, UK. Various NISM Certification Holders. Ex-BSE Institute Faculty. 18 years of extensive experience in Accounting & Finance. Faculty Development Programs and Management Development Programs at the PAN India level to create awareness about the emerging trends in the Indian Capital Market, and counsel hundreds of students in career choices in the finance area

Frequently Asked Questions

1. What is YTM in simple words?

YTM is the total yearly return you earn if you buy a bond at today's price and hold it until maturity, counting both the coupons and any gain or loss when the bond is repaid.

2. How do I calculate YTM in Excel?

Use =RATE(years, annual coupon, −price, face value). For half-yearly coupons, halve the coupon, double the periods and multiply the result by 2. Use =YIELD() when exact dates are given.

3. Is YTM the same as IRR?

Yes, in effect. YTM is the IRR of a bond's cash flows when it is held to maturity. IRR is the general measure used for any investment.

4. Why does a bond's price fall when YTM rises?

A higher YTM means the bond's future payments are discounted more heavily, so their value today, which is the price, falls.

5. What is the difference between current yield and YTM?

Current yield is the annual coupon divided by the price. YTM also includes the gain or loss at maturity, so it shows your full return.

6. What is the formula for the price of a bond?

A bond's price is the present value of all its coupons plus the present value of its face value, discounted at the market yield. In Excel, use =PV(yield, years, coupon, face value) or =PRICE().

7. Can I use Excel in the NISM XV exam?

At test centres, a spreadsheet is provided on the exam computer where the exam requires it, and you may bring your own simple calculator. In remote proctored exams, only the on-screen calculator is allowed.