India version. Set up for Indian G-secs: prices per ₹100 face value, half-yearly coupons, the 30/360 day count the RBI describes, checked against the RBI's own worked examples. US version
G-Sec and Bond Yield Calculator
Yield to maturity, price and accrued interest for Indian government securities per ₹100 face value, with half-yearly coupons and the 30/360 day count.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Bond Yield Calculator?
Dated government securities pay interest half-yearly, are priced per ₹100 face value, and count days on a 30/360 basis, where every month has 30 days and the year has 360. Those three conventions come from the RBI's FAQ on the government securities market, and this calculator follows all of them: keep the face value at 100, the frequency at half-yearly, and enter the time to maturity in years counted on 30/360.
Enter the coupon and either a yield or a clean price. The result gives the clean price, the dirty price you actually pay, the accrued interest for the broken period, the current yield and the modified duration. Yield from price is solved numerically, the same trial-and-error the RBI describes for YTM, only to many more decimal places.
The RBI's worked examples make a good test. For its 8.83% security traded at ₹100.50 with 65 days of accrued interest, the calculator returns the same ₹1.5943 accrued interest and ₹102.0943 dirty price as the FAQ.
- Price from yield and yield to maturity from price
- Current yield, yield to call and yield to worst
- Clean price, dirty price and accrued interest between coupon dates
- Macaulay and modified duration with convexity
- Price-yield curve and a full cash-flow table
- Prices, cash flows and working in the currency you pick
Updated
How to use the Bond Yield Calculator
- Choose Price from yield or Yield from price.
- Enter the face value, the annual coupon rate, the years to maturity and the coupon frequency.
- Enter the yield to maturity, or the market price and whether it is clean or dirty.
- For a callable bond, switch on the call option and enter the years to the first call and the call price.
- Read the price or yield, current yield, accrued interest, durations and the price-yield curve.
Worked examples
The RBI accrued interest example
Input
8.83% coupon, ₹100 face, clean price ₹100.50, 9.8194 years left (3,535 days on 30/360 from 30 January 2014 to 25 November 2023)
Output
Accrued interest ₹1.5943; dirty price ₹102.0943; YTM 8.7497%
65 of the 180 days in the half-year have passed, so the buyer owes 8.83 × 65/360 = ₹1.5943 per ₹100. For ₹5 crore face value that is a total consideration of ₹5,10,47,150, as in the RBI FAQ.
The RBI's two-year YTM exercise
Input
8% coupon, 2 years, price ₹102 per ₹100
Output
YTM 6.9121%
The RBI sets this up as four half-yearly cash flows of ₹4 and a final ₹104, discounted at r/2, and solves for r by trial and error. Paying ₹2 over par spreads a loss across two years, so the yield is below the 8% coupon.
A retail holding of ₹10,000 face value
Input
₹10,000 face, 6.79% coupon, 7.5 years left, yield 6.40%
Output
Clean price ₹10,229.46; current yield 6.638%; modified duration 5.832
₹10,000 is the minimum amount the RBI FAQ gives for retail bids and odd-lot trades. A one-point rise in yields would cut the price by about 5.8%.
Background and insight
A bond's price is the present value of its remaining coupons and principal, discounted at the yield. US markets quote yields on a bond-equivalent basis: an annual rate that compounds at the coupon frequency, so a 6% yield on a semiannual bond means 3% per half-year. A 10-year bond with a 5% semiannual coupon priced at a 6% yield is worth $925.61 per $1,000 of face value, a standard textbook example that the calculator's tests reproduce.
There is no formula for yield given price, so the calculator solves for it numerically with Newton's method inside a bisection bracket, to a precision far below a basis point. Current yield (annual coupon ÷ price) is simpler but ignores the pull to par: a discount bond earns more than its current yield because it is redeemed at face value.
Between coupon dates the seller is owed the interest accrued since the last coupon. Quotes are clean prices; the buyer pays the dirty (invoice) price, which adds accrued interest. Enter a maturity such as 9.75 years and the calculator places you half-way through a semiannual period, computes accrued interest and reports both prices. It approximates the day count by the fraction of the period, close to 30/360; Treasuries use actual/actual, so settle real trades from the bond's own conventions.
Macaulay duration is the present-value-weighted average time to the cash flows; modified duration divides it by (1 + yield per period) and gives the approximate percentage price change for a one-point change in yield. A 5-year 10% annual-coupon bond at a 10% yield has a Macaulay duration of 4.1699 years and modified duration of 3.7908.
Common use cases
Comparing bonds
Turn quoted prices into yields to maturity so bonds with different coupons and maturities can be compared.
Checking interest-rate risk
Use modified duration to estimate how much a bond or ladder would lose if rates rose.
Callable bond analysis
See whether yield to call or yield to maturity is the yield you are really likely to earn.
CFA and finance coursework
Check bond pricing, YTM, duration and convexity problems with every cash flow listed.
Tips and limitations
- Count the time to maturity on 30/360 to match market prices: whole months of 30 days, a year of 360 days.
- G-sec quotes are clean. The settlement amount adds accrued interest from the last coupon date to the day before settlement.
- T-bills are discount instruments on an actual/365 basis, not coupon bonds; this calculator is for dated securities.
- The RBI FAQ gives the shut period for securities held in SGL accounts as one day.
Sources and further reading
- Government Securities Market in India: A Primer (FAQ), Reserve Bank of India. Half-yearly coupons, ₹100 face value, 30/360 day count, accrued interest and YTM examples, ₹10,000 minimum
- Non-competitive Bidding Facility in Government Securities (FAQ), Reserve Bank of India. Half-yearly coupons and accrued interest worked on a 360-day year (2001 FAQ)
Frequently asked questions
How is YTM calculated on a government security in India?
YTM is the rate that makes the present value of the half-yearly coupons and the ₹100 redemption equal to the price. The RBI notes it is found by trial and error or a spreadsheet YIELD function. Choose "Yield from price" here and enter the clean price per ₹100.
Which day count convention do G-secs use?
The RBI FAQ says the bond market follows 30/360: every month counts as 30 days and the year as 360. Money market instruments such as T-bills use actual/365. Enter years to maturity on the 30/360 basis so the accrued interest matches.
How is accrued interest calculated on a G-sec?
Coupon × days since the last coupon ÷ 360, per ₹100 face value, counting up to the day before settlement. In the RBI example an 8.83% security 65 days after its coupon carries ₹1.5943 of accrued interest.
What is the minimum amount to buy G-secs as a retail investor?
The RBI FAQ gives ₹10,000 as the minimum for odd-lot trades in dated securities and for competitive and non-competitive bids, in multiples of ₹10,000.
Why do G-sec prices fall when yields rise?
The coupons are fixed, so a higher market yield is only reached by paying less for them. Modified duration measures the effect: at 5.8, a rise from 6.40% to 7.40% would take roughly 5.8% off the price.
Can I use it for corporate bonds and SDLs?
Yes for any fixed-coupon bond, as long as you set its frequency and count the time to maturity on the bond's own day count. Check the information memorandum for the coupon frequency.
Is there an in-depth guide to the Bond Yield Calculator?
Yes. “APY, Bond Yields and SIP Returns: Reading the Rate Correctly” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.