Yield to Maturity (YTM) Calculator

Calculate total bond return accounting for purchase price, coupon payments, and time to maturity

About the Yield to Maturity (YTM) Calculator

The Yield to Maturity (YTM) Calculator is an essential tool for fixed-income investors seeking to determine the total anticipated return on a bond if held until its expiration date. Unlike simple yield or coupon rates, YTM accounts for the time value of money by discounting all future cash flows—including every interest payment and the final principal repayment—back to the present day. This allows investors to compare bonds with different maturities, prices, and coupon rates on an apples-to-apples basis.

Financial analysts, portfolio managers, and individual retail investors use this calculator to assess whether a bond is priced fairly relative to market interest rates. By inputting the current market price, the face value, the annual coupon rate, and the years remaining, users can instantly see the effective annual interest rate they will earn. This is particularly useful when evaluating "discount bonds" bought below par or "premium bonds" bought above par, as the price deviation significantly impacts the net return beyond the stated interest payments.

Formula

Price = [C * (1 - (1 + r)^-n) / r] + [FV / (1 + r)^n]

The formula solves for 'r', which represents the Yield to Maturity. In this equation, Price is the current market value of the bond, C is the periodic coupon payment, FV is the face value (par) of the bond, and n is the total number of periods remaining until maturity. Because 'r' appears in multiple places within the exponents, it cannot be isolated easily through basic algebra.

Instead, the calculator uses an iterative numerical method, such as the Newton-Raphson method, to find the percentage rate that makes the present value of all future coupons and the principal repayment equal to the price you pay today. For bonds paying semiannually, the resulting rate 'r' is doubled to provide the annual YTM.

Worked examples

Example 1: An investor buys a 10-year bond with a $1,000 par value for $955. The bond pays a 4% annual coupon.

1. Identify Price ($955), Face Value ($1,000), Coupon ($40/year), and Years (10).\n2. Set up the equation: 955 = [40 * (1 - (1+r)^-10) / r] + [1000 / (1+r)^10].\n3. Use iteration to solve for r.\n4. r ≈ 0.0457 or 4.57%.

Result: 4.57% annual YTM. The investor earns a higher yield than the coupon because the bond was purchased at a discount.

Example 2: A trader purchases a 5-year bond at a premium price of $1,050. The bond has a $1,000 par value and a 4% coupon.

1. Identify Price ($1,050), Face Value ($1,000), Coupon ($40/year), and Years (5).\n2. Set up the equation: 1050 = [40 * (1 - (1+r)^-5) / r] + [1000 / (1+r)^5].\n3. Use iteration to solve for r.\n4. r ≈ 0.0289 or 2.89%.

Result: 2.89% annual YTM. The yield is lower than the coupon rate because the premium paid at purchase offsets some of the interest income.

Common use cases

Pitfalls and limitations

Frequently asked questions

What is the difference between current yield and yield to maturity?

Current yield only measures annual coupon income relative to price. YTM is a more comprehensive metric because it includes the capital gain or loss realized if you hold the bond until it matures, as well as the time value of money.

Why is my YTM higher than the coupon rate?

If you buy a bond at a discount (below its par value), the YTM will be higher than the coupon rate. This is because your total return includes both the interest payments and the profit made when the bond's value rises to par at maturity.

Can I calculate YTM without a financial calculator?

Calculating YTM accurately requires solving for the internal rate of return, which usually involves an iterative process or trial and error. This calculator uses a numerical method to find the exact rate that equates the present value of all future cash flows to the current market price.

Is yield to maturity the same as my actual profit?

While YTM is an excellent benchmark, it assumes all coupon payments are reinvested at that same YTM rate. If interest rates drop and you reinvest your coupons at a lower rate, your actual realized return will be lower than the original YTM.

What inputs do I need for the yield to maturity formula?

The calculator uses the bond's market price, par value, coupon rate, and time remaining. For most corporate and government bonds, semiannual compounding is the industry standard for these inputs.

Related calculators

403(b) Calculator
Plan retirement savings with a 403(b) tax-sheltered annuity plan for nonprofit employees
50/30/20 Rule Calculator
Allocate your income into needs, wants, and savings using the popular budgeting rule
529 Plan Calculator
Calculate education savings with tax-free growth for college, K-12, and qualified expenses
Accumulated Depreciation Calculator
Calculate total accumulated depreciation using straight-line, declining balance, sum-of-years, or units of production methods
Absenteeism Rate Calculator
Calculate workforce absenteeism rate, estimate costs, and benchmark against industry averages
Additional Funds Needed (AFN) Calculator
Calculate external financing required to support projected sales growth
Altman Z-Score Calculator
Predict bankruptcy risk and assess financial health of companies
APY Calculator
Calculate annual percentage yield and compare compound interest returns