The most common formula used to calculate yield to maturity is:
YTM = C + F−P/n / F+P/2
where: ​
C = Coupon/interest payment
F = Face value
P = Price
n = Years to maturity