YIELD calculates the yield on a security based on its current market price and its annual coupon rate, while YIELD TO MATURITY calculates the yield on a security based on its purchase price and its expected cash flows, including interest payments and principal repayments.