Yield to maturity
Yield to maturity (YTM) runs the formula the other way: it is the single rate that makes the present value of the cash flows equal the price, the bond's internal rate of return. It is the return an investor earns only if the bond is held to maturity, every payment is made on time, and each coupon is reinvested at the same yield. US bonds quote YTM on a semiannual bond basis: the yield per half-year times two. The effective annual yield is (1 + y/2)^2 - 1.
Current yield, the annual coupon divided by the price, is a rougher measure: it ignores the gain or loss as the price moves toward par.