Calculate exactly how much your Certificate of Deposit will grow over time.
Months
Years
Daily
Monthly
Quarterly
Semi-Annually
Annually
Total Interest Earned:$0.00
Balance at Maturity:$0.00
Effective Daily Yield:0.00%
Understanding How CD Rates Are Calculated
A Certificate of Deposit (CD) is a savings vehicle that typically offers a higher interest rate than a standard savings account in exchange for leaving your money untouched for a set period. Understanding the math behind these rates helps you compare different financial products effectively.
The Compound Interest Formula
The growth of a CD is determined by the compound interest formula:
A = P (1 + r/n)^(nt)
A: The final amount (maturity value).
P: The initial principal deposit.
r: The annual interest rate (decimal).
n: The number of times interest is compounded per year.
t: The time the money is invested for (in years).
APY vs. APR: What's the Difference?
Banks often display the Annual Percentage Yield (APY). Unlike the Annual Percentage Rate (APR), the APY accounts for the effect of intra-year compounding. For example, a CD with a 5% APR compounded monthly will have a higher APY (5.12%) because you earn interest on your interest every month.
Practical Example
If you deposit $10,000 into a 12-month CD with a 5.00% APY compounded monthly:
The bank calculates your monthly interest by dividing the rate.
By the end of Month 1, your balance is $10,041.67.
In Month 2, you earn interest on $10,041.67, not just the original $10,000.
At the end of the year, your total interest would be approximately $500.00, bringing your total to $10,500.00.
Factors That Influence CD Rates
CD rates aren't arbitrary. They are primarily influenced by:
Federal Reserve Policy: When the Fed raises the federal funds rate, banks typically increase CD rates to attract more deposits.
Term Length: Historically, longer-term CDs (e.g., 5-year) offer higher rates than short-term CDs (e.g., 6-month) to compensate for the "liquidity risk" of locking away your money.
Bank Liquidity Needs: If a bank needs to raise capital quickly to fund loans, they may offer "special" promotional CD rates that are higher than the national average.
function calculateCD() {
var principal = parseFloat(document.getElementById('cd_principal').value);
var apy = parseFloat(document.getElementById('cd_apy').value);
var term = parseFloat(document.getElementById('cd_term').value);
var termType = document.getElementById('cd_term_type').value;
var compounding = parseFloat(document.getElementById('cd_compounding').value);
if (isNaN(principal) || isNaN(apy) || isNaN(term) || principal <= 0 || apy < 0 || term <= 0) {
alert("Please enter valid positive numbers for all fields.");
return;
}
// Convert term to years
var tYears = term;
if (termType === 'months') {
tYears = term / 12;
}
// Convert APY to decimal
var r = apy / 100;
// APR is required for the compound formula if using frequency
// However, most banks quote APY which ALREADY includes compounding.
// To find the actual growth based on a quoted APY:
// Maturity Value = P * (1 + APY)^t (where t is in years)
// This is the standard way to calculate from APY regardless of compounding frequency
// because APY is the normalized annual rate.
var maturityValue = principal * Math.pow((1 + r), tYears);
var totalInterest = maturityValue – principal;
// Effective Daily Yield calculation
var dailyYield = (Math.pow((1 + r), (1/365)) – 1) * 100;
// Display Results
document.getElementById('res_interest').innerText = "$" + totalInterest.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('res_total').innerText = "$" + maturityValue.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('res_daily').innerText = dailyYield.toFixed(4) + "%";
document.getElementById('cd_result_box').style.display = 'block';
}