A High-Yield Savings Account (HYSA) is a type of savings account that typically pays significantly higher interest rates than standard savings accounts. By using this calculator, you can visualize how small, consistent monthly contributions combined with a competitive APY can lead to substantial long-term growth.
How Compound Interest Works
Compound interest is the "interest on interest." In a High-Yield Savings account, interest is typically compounded daily or monthly and credited to your account. This means your next interest payment is calculated based on a slightly higher balance than the previous one.
Example Scenario
Initial Deposit: $10,000
Monthly Addition: $500
APY: 4.0%
Time: 5 Years
Result: After 5 years, you would have approximately $45,394. Your total contributions would be $40,000, and you would have earned $5,394 in interest just for keeping your money in the account.
Why APY Matters
The difference between a 0.01% APY (traditional bank) and a 4.5% APY (high-yield bank) is massive. On a $20,000 balance, the 0.01% account earns only $2.00 in a year, while the 4.5% account earns $900.00. Use the calculator above to compare how different rates impact your financial goals.
function calculateHYSA() {
var P = parseFloat(document.getElementById('initialDeposit').value);
var PMT = parseFloat(document.getElementById('monthlyContribution').value);
var annualRate = parseFloat(document.getElementById('apy').value) / 100;
var t = parseFloat(document.getElementById('years').value);
var n = 12; // Compounding monthly
if (isNaN(P) || isNaN(PMT) || isNaN(annualRate) || isNaN(t)) {
alert("Please enter valid numeric values in all fields.");
return;
}
var r = annualRate / n;
var nt = n * t;
// Formula for compound interest with monthly contributions:
// A = P(1 + r/n)^(nt) + PMT * [((1 + r/n)^(nt) – 1) / (r/n)]
var futureValuePrincipal = P * Math.pow((1 + r), nt);
var futureValueAnnuity = PMT * ((Math.pow((1 + r), nt) – 1) / r);
var totalBalance = futureValuePrincipal + futureValueAnnuity;
var totalContributed = P + (PMT * nt);
var totalInterest = totalBalance – totalContributed;
// Formatter
var formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
});
document.getElementById('finalBalance').innerText = formatter.format(totalBalance);
document.getElementById('totalContributions').innerText = formatter.format(totalContributed);
document.getElementById('totalInterest').innerText = formatter.format(totalInterest);
document.getElementById('hysa-results').style.display = 'block';
}
// Run once on load
window.onload = function() {
calculateHYSA();
};