Bond Yield, Duration and Convexity Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
A 5% semi-annual bond maturing on 15 February 2036 and bought on 10 March 2026 at a clean price of 96.50 yields 5.461% to maturity. On the 30/360 day count used here, settlement falls 25 days into a 180-day coupon period, so 0.347 of accrued interest lifts the invoice price to 96.847 per 100, modified duration is 7.67 years, and one basis point of yield moves the price by 0.0743 per 100 face, which is 0.74 on a 1,000 holding. This page converts between price and yield on the day-count conventions of spreadsheet bond functions and shows the cash flows behind every number.
Key features
- Price to yield and yield to price, on five day-count bases
- Accrued interest, clean price and dirty price, and the amount for the face value you hold
- Current yield, yield to call and yield to worst
- Macaulay and modified duration, convexity and DV01
- Price-yield chart with the straight-line duration estimate and the duration plus convexity estimate
- Cash-flow schedule with discount factors that add up to the dirty price, as CSV or an XLSX that includes the spreadsheet PRICE, YIELD, DURATION and MDURATION as cross-checks
How price and yield are converted, and what each risk measure means
Enter the settlement and maturity dates, the annual coupon rate, how many coupons are paid a year (annual, semi-annual, quarterly or monthly), a day count, a face value held, and either the clean price per 100 or the yield to maturity. An optional call date and call price add yield to call and yield to worst. Bonds up to 100 years from maturity are supported.
Coupon dates are counted back from maturity in whole coupon periods, with the end-of-month rule when maturity is the last day of its month, so the bond must have regular periods; a short or long first coupon is not modelled. A zero coupon is allowed. The date inputs are fixed to a year-month-day format, so there is no day-month ambiguity.
How it works
With N coupons left, coupon c per period (annual rate times 100 divided by the frequency f), redemption R, y the yield, and w the share of the current period still to run (days from settlement to the next coupon divided by days in the period), the dirty price is R / (1 + y/f)^(N - 1 + w) plus the sum of c / (1 + y/f)^(k - 1 + w) for k = 1 to N. Accrued interest is c times the accrued days over the days in the period, and the clean price is dirty minus accrued. The days come from the chosen basis: 30/360 US and 30E/360 count 30-day months, actual/actual uses the real length of the coupon period, and actual/360 and actual/365 count real days against a 360- or 365-day year. With a single coupon left the last period is discounted at simple interest, as spreadsheet bond functions do. Yield from price is found by bisection on the dirty price.
Macaulay duration is the present-value-weighted average time to the cash flows, in years; modified duration is that divided by (1 + y/f) and gives the approximate percentage price change for a one point change in yield. Convexity is the second-order term, the sum of PV x t x (t + 1) divided by the dirty price times (1 + y/f) squared times f squared, and the duration plus convexity estimate adds half of convexity times the yield change squared. DV01 is modified duration times the dirty price times 0.0001, in price units per 100 face. For yield to call the same price is treated as a bond ending at the call date and redeemed at the call price.
When to use it
- A treasury analyst checking a broker's quoted yield, accrued interest and duration for a corporate bond before settlement.
- A student comparing the same bond on 30/360 and actual/actual to see how the day count changes accrued interest.
Inputs
- Enter the settlement and maturity dates, the coupon and its frequency, and pick the day count.
- Choose whether you know the clean price or the yield, and enter it.
- Add a call date and call price if the bond is callable.
- Read the yield, prices and accrued interest, then the duration, convexity and DV01 and the chart.
- Download the cash-flow schedule, the summary or the XLSX.
Worked example
Settle 10 Mar 2026, mature 15 Feb 2036, 5% semi-annual, 30/360, price 96.50, callable 15 Feb 2031 at 102
settlement 2026-03-10
maturity 2036-02-15
coupon 5%, 2 a year, 30/360
clean price 96.50, face 1,000
call 2031-02-15 at 102Result
Yield to maturity 5.461%, current yield 5.181%
Clean 96.5000, accrued 0.3472, dirty 96.8472 (968.47 for 1,000 face)
Macaulay 7.8768 years, modified 7.6675, convexity 71.705
DV01 0.07426 per 100 face (0.7426 for 1,000)
Yield to call 6.186%, so yield to worst is the yield to maturityLimits
Modified duration to maturity overstates the sensitivity of a bond that will probably be called. The page shows modified duration to call alongside it so you can compare.
Yield to call is only meaningful on a coupon date. If the call date is not one of the bond's coupon dates, the page counts periods back from the call date and says so, which can differ from how a market quote treats it.
- Read the price-yield chart as well as the numbers. The dashed straight line from duration lies below the curve on both sides, and the gap shows how much convexity matters for a move of a point or more.
- Enter the yield and read off the price if you want to see how much a bond would fall for a given rate rise: change the yield by the move and compare the clean prices.
Common errors and how to fix them
- No yield reproduces that price. Check the price, the coupon and the dates
- The price is outside what the cash flows can support at any yield, from deeply negative to very large. Look for a transposed price, a wrong coupon or a wrong maturity.
Frequently asked questions
How do I know the calculation agrees with a spreadsheet?
The XLSX export includes PRICE, YIELD, DURATION and MDURATION on the same inputs beside the page's own figures. The page follows their conventions and reproduces the worked examples in their documentation, such as a clean price of 94.63436162 and a Macaulay duration of 5.993775.