The formula to calculate compound interest is to add 1 to the interest rate in decimal form, raise this sum to the total number of compound periods, and multiply this solution by the principal amount.