Bond yield calculator
Enter the price, coupon and maturity: the calculator shows the yield to maturity (YTM), the current yield, accrued interest and the clean and dirty price, before and after tax. It works for Treasury notes, gilts, Bunds, BTPs and corporate bonds.
Type your own tax rate to see the yield after tax. Nothing you enter leaves your browser.
Start from an example
Example inputs only, not live prices: replace them with your bond's data.
Yield to maturity (gross)
3.44%
Yield to maturity (after tax)
–
- Current yield
- 3.06%
- Accrued interest
- 0.000
- Price incl. accrued interest
- 98.000
- Years to maturity
- 5.0
Cash flows (10)
| Date | Gross | Net |
|---|---|---|
| 2027-06-05 | 1.500 | 1.500 |
| 2027-12-05 | 1.500 | 1.500 |
| 2028-06-05 | 1.500 | 1.500 |
| 2028-12-05 | 1.500 | 1.500 |
| 2029-06-05 | 1.500 | 1.500 |
| 2029-12-05 | 1.500 | 1.500 |
| 2030-06-05 | 1.500 | 1.500 |
| 2030-12-05 | 1.500 | 1.500 |
| 2031-06-05 | 1.500 | 1.500 |
| 2031-12-05 | 101.500 | 101.500 |
How it is calculated
The yield to maturity is the quoted annual rate (the rate per coupon period times the coupons a year) at which the price paid (plus accrued interest) equals the present value of all coupons and the redemption.
After tax, each coupon is reduced by the chosen rate; at maturity a gain (100 minus the purchase price) is taxed at the same rate. Losses are not offset.
How to use the calculator in four steps
- Price. Enter the clean price, the one quoted on your broker's screen, as a number per 100 of face value. A bond at 98.5 costs 985 for every 1,000 of face value, before accrued interest.
- Coupon and frequency. Enter the annual coupon in percent and how often it is paid. US Treasury notes and gilts pay twice a year, Bunds and OATs once, some corporate bonds four times.
- Dates. The purchase date defaults to today. Pick the maturity date from the bond's terms.
- Tax (optional). Type your own rate to see the yield after tax. Leave it empty for the gross figure.
The result updates as you type and so does the address of this page, so any result can be saved, bookmarked or sent to someone as a link.
A worked example
Take a bond with a 3% annual coupon, five years to run, bought at 95 on a coupon date. Each year it pays 3 per 100, and at maturity it returns 100, five points more than you paid. The calculator gives a yield to maturity of 4.13% a year, against a current yield (coupon divided by price) of 3.16%. The gap is the discount you collect at the end, spread over the years.
Now type a 26% tax rate: the yield after tax falls to 3.07%. Type 12.5% and it is 3.62%. Same bond, same price, more than half a point of difference, which is why the tax line is not decoration. Neither rate is a suggestion: they are examples of the rate you would type in yourself.
| Price (3% coupon, 5 years) | Current yield | Yield to maturity |
|---|---|---|
| 95 | 3.16% | 4.13% |
| 100 | 3.00% | 3.00% |
Clean price, dirty price and accrued interest
Bond screens quote the clean price, which leaves out the interest earned since the last coupon. What you actually pay is the dirty price: clean price plus accrued interest. The calculator shows both. Buy a 3.5% semi-annual bond two months before a coupon date and roughly 1.16 points of the price you pay is accrued interest that the seller earned and that you will receive back with the next coupon. If you want to read more, see clean and dirty price explained.
Current yield versus yield to maturity
Current yield divides the coupon by the price and stops there. It ignores the pull-to-par: a bond at 95 will be worth 100 at maturity, and that is part of what you earn. Yield to maturity includes it. The two agree only when the price is 100. The guide on current yield and yield to maturity goes through the differences.
What the calculator does not do
- It assumes the issuer pays every coupon and repays at maturity. It says nothing about credit risk.
- It does not handle callable, floating-rate or inflation-linked bonds, where the cash flows are not fixed.
- It assumes coupons on the anniversaries of the maturity date and a simple ACT/ACT day count; a broker's figure can differ in the second decimal.
- Tax is simplified: coupons and the gain at maturity at one rate, no offsetting of losses.
Frequently asked questions
What is a bond yield calculator?
A bond yield calculator turns a bond's price, coupon and maturity into one annual rate, the yield to maturity, so bonds with different coupons and prices can be compared on the same scale.
How do I calculate yield to maturity?
Yield to maturity is the annual rate at which the present value of all remaining coupons and the final repayment equals the price paid. It has no closed formula and is found by trial and error, which is what this calculator does in your browser.
What is the difference between yield to maturity and current yield?
Current yield is the annual coupon divided by the price. Yield to maturity also counts the gain or loss between the price paid and the repayment at maturity, and the timing of every payment.
Does the calculator work for Treasury notes, gilts, Bunds and BTPs?
Yes, for any fixed-coupon bond: enter its price, coupon, payment frequency and maturity. Use the example buttons to start with typical conventions, then replace the numbers with your bond's.
How is yield after tax calculated?
Each coupon is reduced by the tax rate you type, and at maturity a gain over the purchase price is taxed at the same rate. Losses are not offset. The result is an estimate, not tax advice.
Is my data stored?
No. The calculation runs in your browser. The only trace is the address of the page, which holds your inputs so you can share or bookmark a result.
Related guides
- How to calculate yield to maturity
- Current yield vs yield to maturity
- Clean price vs dirty price
- Bond yield after tax
- Treasury yield calculator
- Bond yield in Excel and Google Sheets
Educational information only, not a personal recommendation. Tax rules change and depend on your situation: check the official source.