APY, short for annual percentage yield, is the total interest a deposit earns in a year, written as a percentage. It counts compounding, the interest earned on interest already added.
Because of compounding, an account's APY is usually a little higher than its interest rate. If interest compounds only once a year, the two numbers are the same.
Banks have to show both numbers in their account disclosures, under the federal Truth in Savings rules. APY is the better one for comparing savings accounts and CDs, because it puts them all on the same yearly footing.
The official definition, from Regulation DD, describes APY as a rate "reflecting the total amount of interest paid on an account, based on the interest rate and the frequency of compounding for a 365-day period."
APY is about what savings earn. For the cost of borrowing, see APR.