In more detail
The formula is APY = (1 + r/n)^n − 1, where r is the nominal annual rate and n the compounding periods per year. The more often interest is added, the higher the APY for the same nominal rate. Use APY to compare savings accounts. See Compound interest.
Example
A 5% rate compounded monthly has an APY of 5.12%.