Essa Shakeel Finance 100 #46 · Investing View source on GitHub

Bond Calculator

Price, yield to maturity, duration and convexity for any plain-vanilla bond.

Your numbers

Results

Cash flows

How it works

The price is the present value of every coupon plus the face value, discounted at the yield per period: P = sum of C / (1 + y/m)^k + F / (1 + y/m)^N. Here C = F x coupon / m, m is payments per year, and N = years x m. When you enter a market price, the yield is solved by bisection on that same equation.

Duration and convexity. Macaulay duration is the weighted average time to each cash flow, sum of t x PV(t) / P, in years. Modified duration is Macaulay / (1 + y/m). The estimated price change for a 1 point yield move is -D x dy + (1/2) x C x dy^2, where D is modified duration and C is convexity.

Current yield is the annual coupon divided by the price. It ignores the gain or loss at maturity, so it is always a rougher measure than yield to maturity.

Limits: the model assumes the bond is held to maturity with every coupon reinvested at the same yield, and that there is no call, default or accrued interest. Figures are for a plain bond bought on a coupon date. Check the bond's offering terms before you buy.