YTM is the total return anticipated on a bond if held until maturity. It accounts for the current price, coupon payments, and the difference between purchase price and face value.
Solve for YTM: Bond Price = Σ [C/(1+YTM)^t] + [FV/(1+YTM)^n] where C = coupon, FV = face value
A $1,000 face value bond with 5% coupon purchased at $950 with 5 years to maturity has a YTM higher than 5% because you also gain $50 when it matures at face value.
Use our bond yield calculator to compute YTM. AllInvestView's bond report shows YTM for all bonds in your portfolio.