How to Calculate 401k Match

401k Match Calculator: Maximize Your Employer Contributions :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ddd; –card-background: #fff; –shadow: 0 2px 5px rgba(0,0,0,0.1); } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(–background-color); color: var(–text-color); line-height: 1.6; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; } .container { width: 100%; max-width: 960px; margin: 20px auto; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); } header { background-color: var(–primary-color); color: white; padding: 20px 0; text-align: center; width: 100%; } header h1 { margin: 0; font-size: 2.5em; } main { padding: 20px 0; } h1, h2, h3 { color: var(–primary-color); } h1 { font-size: 2em; margin-bottom: 15px; } h2 { font-size: 1.75em; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid var(–primary-color); padding-bottom: 5px; } h3 { font-size: 1.3em; margin-top: 20px; margin-bottom: 10px; } .loan-calc-container { background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 30px; } .input-group { margin-bottom: 20px; text-align: left; } .input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(–primary-color); } .input-group input[type="number"], .input-group select { width: calc(100% – 22px); padding: 10px; border: 1px solid var(–border-color); border-radius: 4px; font-size: 1em; box-sizing: border-box; } .input-group .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; display: block; } .error-message { color: red; font-size: 0.85em; margin-top: 5px; display: none; /* Hidden by default */ } .button-group { display: flex; justify-content: space-between; margin-top: 30px; flex-wrap: wrap; gap: 10px; } button { padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background-color 0.3s ease; } .btn-calculate { background-color: var(–primary-color); color: white; } .btn-calculate:hover { background-color: #003366; } .btn-reset { background-color: #6c757d; color: white; } .btn-reset:hover { background-color: #5a6268; } .btn-copy { background-color: var(–success-color); color: white; } .btn-copy:hover { background-color: #218838; } #results { margin-top: 30px; padding: 25px; background-color: var(–primary-color); color: white; border-radius: 8px; text-align: center; box-shadow: var(–shadow); } #results h3 { color: white; margin-top: 0; font-size: 1.5em; } .main-result { font-size: 2.5em; font-weight: bold; margin: 10px 0; display: block; word-wrap: break-word; } .intermediate-results div { margin-bottom: 10px; font-size: 1.1em; } .intermediate-results span { font-weight: bold; } .formula-explanation { font-size: 0.9em; margin-top: 15px; opacity: 0.8; } table { width: 100%; border-collapse: collapse; margin-top: 20px; margin-bottom: 30px; box-shadow: var(–shadow); overflow-x: auto; /* Make table scrollable */ display: block; /* Needed for overflow-x */ white-space: nowrap; /* Prevent wrapping within cells */ } thead { background-color: var(–primary-color); color: white; } th, td { padding: 12px 15px; text-align: left; border: 1px solid var(–border-color); } tbody tr:nth-child(even) { background-color: #f2f2f2; } caption { font-size: 1.1em; font-weight: bold; margin-bottom: 10px; text-align: left; color: var(–primary-color); } canvas { max-width: 100%; height: auto; display: block; margin: 20px auto; border: 1px solid var(–border-color); border-radius: 4px; box-shadow: var(–shadow); } .chart-container { position: relative; width: 100%; margin-top: 20px; } .chart-caption { font-size: 1em; font-weight: bold; text-align: center; margin-top: 10px; color: var(–primary-color); } .section { margin-bottom: 40px; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); } .section p, .section ul { margin-bottom: 15px; } .section ul { padding-left: 20px; } .section li { margin-bottom: 8px; } .faq-item { margin-bottom: 20px; border-bottom: 1px dashed var(–border-color); padding-bottom: 15px; } .faq-item:last-child { border-bottom: none; } .faq-question { font-weight: bold; color: var(–primary-color); cursor: pointer; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; } .faq-question::after { content: '+'; font-size: 1.2em; color: var(–primary-color); } .faq-answer { display: none; padding-left: 10px; font-size: 0.95em; color: #555; } .faq-item.open .faq-question::after { content: '-'; } .faq-item.open .faq-answer { display: block; } .internal-links-section ul { list-style: none; padding: 0; } .internal-links-section li { margin-bottom: 15px; } .internal-links-section a { color: var(–primary-color); text-decoration: none; font-weight: bold; } .internal-links-section a:hover { text-decoration: underline; } .internal-links-section p { font-size: 0.9em; color: #555; margin-top: 5px; } @media (max-width: 768px) { header h1 { font-size: 1.8em; } .container { margin: 10px; padding: 15px; } .loan-calc-container, .section { padding: 20px; } button { width: 100%; margin-bottom: 10px; } .button-group { flex-direction: column; align-items: center; } #results { padding: 20px; } .main-result { font-size: 2em; } th, td { padding: 10px; font-size: 0.9em; } caption { font-size: 1em; } canvas { width: 100%; } }

401k Match Calculator

Understand how your employer contributes to your retirement savings with our 401k match calculator. Input your salary and your employer's matching formula to see how much free money you could be leaving on the table.

Calculate Your 401k Match

Enter your gross annual salary.
Percentage of your salary you contribute (e.g., 6 for 6%).
50% on the first 6% 100% on the first 3% 100% on the first 4% Custom Select your employer's standard matching formula.
Enter the percentage your employer matches (e.g., 50 for 50%).
Enter the maximum percentage of your salary the employer will match (e.g., 6 for 6%).

Your Estimated 401k Match

$0.00
Your Contribution: $0.00
Employer Match: $0.00
Total Retirement Contribution: $0.00
Match is calculated based on your salary, contribution rate, and employer's formula.

What is a 401k Match?

A 401k match is a benefit offered by some employers where they contribute a certain amount to your 401k retirement savings account based on your own contributions. Essentially, it's free money from your employer designed to encourage you to save for retirement. Understanding and maximizing your 401k match is one of the most effective ways to boost your long-term retirement savings.

Who should use this calculator? Anyone with access to an employer-sponsored 401k plan that offers a matching contribution. This includes employees of private companies and some non-profit organizations. It's particularly useful for those new to their company's benefits or looking to optimize their savings strategy.

Common misconceptions about 401k match:

  • "It's not real money": A 401k match is a direct financial contribution to your retirement, increasing your total savings.
  • "I can get it later": Employer matches are typically tied to your active employment. If you leave the company, you usually forfeit unvested matching funds.
  • "My company doesn't offer one": While not universal, 401k matches are a common and valuable benefit. Always check your employee benefits package.
  • "I don't need to contribute much if they match": The goal is to save for retirement. While the match is great, contributing more than the match threshold significantly accelerates your savings.

401k Match Formula and Mathematical Explanation

Calculating your 401k match involves understanding your salary, your contribution rate, and your employer's specific matching formula. The core idea is to determine how much you contribute and then apply the employer's rules to that contribution.

General Calculation Steps:

  1. Calculate Your Contribution Amount: Your contribution is your annual salary multiplied by your contribution rate (as a decimal).
  2. Determine Employer Match Based on Formula: Apply the employer's specific matching rules to your contribution or salary. This is the most variable step.
  3. Calculate Total Contribution: Sum your contribution and the employer's match.

Variable Explanations:

Let's break down the variables used in the calculation:

  • Annual Salary (S): Your gross income before taxes and deductions.
  • Your Contribution Rate (C%): The percentage of your salary you choose to contribute to your 401k.
  • Employer Match Percentage (M%): The percentage of your contribution (or salary) that the employer will match.
  • Employer Match Cap (Cap%): The maximum percentage of your salary that the employer will match.

Variables Table:

Key Variables in 401k Match Calculation
Variable Meaning Unit Typical Range
Annual Salary (S) Gross annual income Currency (e.g., USD) $30,000 – $200,000+
Your Contribution Rate (C%) Percentage of salary contributed by employee % 0% – 100% (subject to IRS limits)
Employer Match Percentage (M%) Percentage of employee contribution matched % Varies widely (e.g., 25%, 50%, 100%)
Employer Match Cap (Cap%) Maximum percentage of salary matched by employer % Varies widely (e.g., 3%, 4%, 6%)

Formula Derivation:

The calculation logic implemented in the calculator is as follows:

  1. Your Contribution Amount = S * (C% / 100)
  2. Employer Match Calculation: This depends on the formula.
    • For "50% on the first 6%":
      • Your contribution percentage considered for match: min(C%, 6%)
      • Employer Match Amount = S * (min(C%, 6%) / 100) * 0.50
    • For "100% on the first 3%":
      • Your contribution percentage considered for match: min(C%, 3%)
      • Employer Match Amount = S * (min(C%, 3%) / 100) * 1.00
    • For "100% on the first 4%":
      • Your contribution percentage considered for match: min(C%, 4%)
      • Employer Match Amount = S * (min(C%, 4%) / 100) * 1.00
    • For "Custom":
      • Your contribution percentage considered for match: min(C%, Cap%)
      • Employer Match Amount = S * (min(C%, Cap%) / 100) * M%
  3. Total Retirement Contribution = Your Contribution Amount + Employer Match Amount

The calculator simplifies these steps for clarity, focusing on the final match amount and total contributions. This calculation helps illustrate the power of employer matching in accelerating your retirement savings.

Practical Examples (Real-World Use Cases)

Example 1: Standard Match

Scenario: Sarah earns an annual salary of $70,000. Her employer offers a 50% match on the first 6% of her salary contributed to the 401k. Sarah decides to contribute 8% of her salary.

Inputs:

  • Annual Salary: $70,000
  • Your Contribution Rate: 8%
  • Employer Match Formula: 50% on the first 6%

Calculation Breakdown:

  • Your Contribution Amount: $70,000 * 0.08 = $5,600
  • Employer Match Calculation: The employer matches 50% on the first 6% of salary. Sarah contributes 8%, so the match applies to the first 6%.
  • Employer Match Amount: $70,000 * 0.06 * 0.50 = $2,100
  • Total Retirement Contribution: $5,600 (Your Contribution) + $2,100 (Employer Match) = $7,700

Result: Sarah contributes $5,600, and her employer adds $2,100, for a total of $7,700 going into her 401k. She effectively gets an extra 3% of her salary contributed by her employer.

Example 2: Full Match Cap

Scenario: John earns $90,000 annually. His employer offers a 100% match on the first 4% of his salary. John wants to ensure he gets the maximum possible match.

Inputs:

  • Annual Salary: $90,000
  • Your Contribution Rate: 4%
  • Employer Match Formula: 100% on the first 4%

Calculation Breakdown:

  • Your Contribution Amount: $90,000 * 0.04 = $3,600
  • Employer Match Calculation: The employer matches 100% on the first 4%. John contributes exactly 4%.
  • Employer Match Amount: $90,000 * 0.04 * 1.00 = $3,600
  • Total Retirement Contribution: $3,600 (Your Contribution) + $3,600 (Employer Match) = $7,200

Result: John contributes $3,600, and his employer matches it dollar-for-dollar with another $3,600. This doubles his initial contribution, highlighting the significant benefit of meeting the full match cap. This is a crucial aspect of retirement planning.

How to Use This 401k Match Calculator

Using the 401k Match Calculator is straightforward and designed to give you quick insights into your retirement savings potential.

  1. Enter Your Annual Salary: Input your gross annual income before any deductions.
  2. Specify Your Contribution Rate: Enter the percentage of your salary you are currently contributing or plan to contribute to your 401k.
  3. Select Employer Match Formula: Choose the option that best describes your employer's matching policy from the dropdown. If your plan is different, select "Custom".
  4. Enter Custom Match Details (If Applicable): If you selected "Custom", you'll need to input the specific percentage your employer matches (e.g., 50%) and the cap on that match as a percentage of your salary (e.g., 6%).
  5. Click "Calculate Match": The calculator will instantly display your estimated total employer match amount, your personal contribution, and the combined total going into your 401k.

How to read results:

  • Your Contribution: Shows the dollar amount you are contributing from your salary.
  • Employer Match: This is the key figure – the amount your employer adds to your account.
  • Total Retirement Contribution: The sum of your contribution and the employer match, representing your total savings for the year.

Decision-making guidance: Compare the 'Employer Match' amount to your salary. If you are not contributing enough to get the full match, consider increasing your contribution rate up to the employer's cap. This calculator helps visualize the immediate financial benefit of maximizing your 401k match, which is a cornerstone of effective wealth building.

Key Factors That Affect 401k Match Results

Several factors influence the amount of 401k match you receive. Understanding these can help you optimize your savings strategy:

  1. Employer's Matching Formula: This is the most direct factor. Formulas vary significantly (e.g., 50% on 6%, 100% on 4%). A more generous formula means a larger match for the same contribution level.
  2. Your Contribution Rate: You must contribute to receive a match. If your employer matches 50% on the first 6%, contributing less than 6% means you won't get the full potential match. Contributing more than the cap (e.g., 10% when the cap is 6%) doesn't increase the employer's contribution beyond that cap.
  3. Your Annual Salary: Since matches are often calculated as a percentage of your salary, a higher salary generally leads to a higher dollar amount of match, assuming your contribution rate and the employer's formula remain constant.
  4. Vesting Schedule: While not affecting the calculation of the match itself, vesting determines when you actually own the employer's contributions. Some matches vest immediately, while others require you to work for a certain period (e.g., 3-5 years) before you fully own the matched funds.
  5. Plan Limits (IRS and Employer): The IRS sets annual limits on how much can be contributed to a 401k plan ($23,000 in 2024 for employee contributions, plus a catch-up contribution for those 50 and older). Employers may also impose their own limits.
  6. Timing of Contributions: Most 401k matches are calculated based on contributions made throughout the year. Ensuring you contribute consistently helps you receive the full benefit over time.
  7. Company Profitability: While less common for standard matches, some companies might adjust discretionary matching contributions based on their financial performance.

Understanding these factors is crucial for effective retirement planning and maximizing your employer benefits.

Frequently Asked Questions (FAQ)

What is the difference between a 401k contribution and a 401k match?
Your 401k contribution is the money you elect to have deducted from your paycheck and deposited into your 401k account. A 401k match is money your employer contributes to your account, typically based on how much you contribute.
Do I have to contribute to get the match?
Yes, almost universally. Employer matches are contingent on you making your own contributions to the 401k plan. The amount they match is usually a percentage of your contribution, up to a certain limit.
What happens if I contribute more than the match cap?
If you contribute more than the percentage of your salary your employer will match (the cap), your employer will only match up to that specified cap. For example, if the match is 100% on the first 4% and you contribute 10%, your employer will still only contribute 4% of your salary. Your additional contributions beyond the match cap still go into your 401k.
Is the 401k match taxable?
Employer matching contributions are not taxed at the time they are made. They grow tax-deferred within your 401k. You will pay income tax on both your contributions and the employer's match when you withdraw the funds in retirement (for traditional 401k plans). Roth 401k contributions and matches grow tax-free.
What is a vesting schedule for 401k matches?
A vesting schedule determines when you gain full ownership rights to the employer's matching contributions. Some plans have immediate vesting (you own it right away), while others have graded vesting (you gradually own more over time) or cliff vesting (you own it all after a specific period, like 3 years). If you leave before you are fully vested, you forfeit the unvested portion of the employer match.
Can I calculate the match based on my take-home pay?
No, 401k matches are calculated based on your gross salary (before taxes and deductions), not your take-home pay. Your contribution rate is also a percentage of your gross salary.
What are the IRS limits for 401k contributions?
For 2024, the employee contribution limit is $23,000. Individuals aged 50 and over can make an additional catch-up contribution of $7,500, bringing their total potential employee contribution to $30,500. These limits apply to your contributions, not the employer match.
Should I always contribute enough to get the full match?
Generally, yes. An employer match is essentially a 100% (or more) return on your investment up to the match limit, which is hard to beat elsewhere. Prioritizing contributions to get the full match is a fundamental strategy for maximizing your retirement savings.
Projected Annual Contributions (Your vs. Employer Match)
© 2024 Your Financial Website. All rights reserved.
var annualSalaryInput = document.getElementById('annualSalary'); var contributionRateInput = document.getElementById('contributionRate'); var matchFormulaSelect = document.getElementById('matchFormula'); var customMatchPercentageInput = document.getElementById('customMatchPercentage'); var customMatchCapInput = document.getElementById('customMatchCap'); var customMatchGroup = document.getElementById('customMatchGroup'); var customMatchCapGroup = document.getElementById('customMatchCapGroup'); var annualSalaryError = document.getElementById('annualSalaryError'); var contributionRateError = document.getElementById('contributionRateError'); var matchFormulaError = document.getElementById('matchFormulaError'); var customMatchPercentageError = document.getElementById('customMatchPercentageError'); var customMatchCapError = document.getElementById('customMatchCapError'); var resultsDiv = document.getElementById('results'); var totalMatchAmountSpan = document.getElementById('totalMatchAmount'); var yourContributionAmountSpan = document.getElementById('yourContributionAmount'); var employerMatchAmountSpan = document.getElementById('employerMatchAmount'); var totalContributionAmountSpan = document.getElementById('totalContributionAmount'); var chart = null; var chartCanvas = document.getElementById('matchChart'); var ctx = chartCanvas.getContext('2d'); function formatCurrency(amount) { return '$' + amount.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,'); } function formatPercentage(value) { return value.toFixed(2) + '%'; } function validateInput(inputElement, errorElement, minValue, maxValue) { var value = parseFloat(inputElement.value); var isValid = true; if (isNaN(value)) { errorElement.textContent = 'Please enter a valid number.'; errorElement.style.display = 'block'; isValid = false; } else if (value < 0) { errorElement.textContent = 'Value cannot be negative.'; errorElement.style.display = 'block'; isValid = false; } else if (minValue !== undefined && value maxValue) { errorElement.textContent = 'Value is too high.'; errorElement.style.display = 'block'; isValid = false; } else { errorElement.textContent = "; errorElement.style.display = 'none'; } return isValid; } function calculate401kMatch() { var salary = parseFloat(annualSalaryInput.value); var contributionRate = parseFloat(contributionRateInput.value); var matchFormula = matchFormulaSelect.value; var customMatchPercentage = parseFloat(customMatchPercentageInput.value); var customMatchCap = parseFloat(customMatchCapInput.value); var isValid = true; isValid = validateInput(annualSalaryInput, annualSalaryError, 0) && isValid; isValid = validateInput(contributionRateInput, contributionRateError, 0, 100) && isValid; if (matchFormula === 'custom') { isValid = validateInput(customMatchPercentageInput, customMatchPercentageError, 0, 100) && isValid; isValid = validateInput(customMatchCapInput, customMatchCapError, 0, 100) && isValid; } if (!isValid) { resultsDiv.style.display = 'none'; return; } var yourContributionAmount = salary * (contributionRate / 100); var employerMatchAmount = 0; var matchCapPercentage = 0; var matchRate = 0; if (matchFormula === '50_on_6′) { matchCapPercentage = 6; matchRate = 0.50; } else if (matchFormula === '100_on_3') { matchCapPercentage = 3; matchRate = 1.00; } else if (matchFormula === '100_on_4') { matchCapPercentage = 4; matchRate = 1.00; } else if (matchFormula === 'custom') { matchCapPercentage = customMatchCap; matchRate = customMatchPercentage / 100; } var contributionToMatch = Math.min(contributionRate, matchCapPercentage); employerMatchAmount = salary * (contributionToMatch / 100) * matchRate; var totalContributionAmount = yourContributionAmount + employerMatchAmount; totalMatchAmountSpan.textContent = formatCurrency(employerMatchAmount); yourContributionAmountSpan.textContent = formatCurrency(yourContributionAmount); employerMatchAmountSpan.textContent = formatCurrency(employerMatchAmount); totalContributionAmountSpan.textContent = formatCurrency(totalContributionAmount); resultsDiv.style.display = 'block'; updateChart(salary, contributionRate, employerMatchAmount); } function resetCalculator() { annualSalaryInput.value = '60000'; contributionRateInput.value = '6'; matchFormulaSelect.value = '50_on_6′; customMatchPercentageInput.value = "; customMatchCapInput.value = "; annualSalaryError.style.display = 'none'; contributionRateError.style.display = 'none'; matchFormulaError.style.display = 'none'; customMatchPercentageError.style.display = 'none'; customMatchCapError.style.display = 'none'; resultsDiv.style.display = 'none'; customMatchGroup.style.display = 'none'; customMatchCapGroup.style.display = 'none'; matchFormulaSelect.dispatchEvent(new Event('change')); // Trigger change to handle custom fields visibility calculate401kMatch(); // Recalculate with defaults } function copyResults() { var salary = parseFloat(annualSalaryInput.value); var contributionRate = parseFloat(contributionRateInput.value); var matchFormula = matchFormulaSelect.options[matchFormulaSelect.selectedIndex].text; var customMatchPercentage = parseFloat(customMatchPercentageInput.value); var customMatchCap = parseFloat(customMatchCapInput.value); var yourContribution = yourContributionAmountSpan.textContent; var employerMatch = employerMatchAmountSpan.textContent; var totalContribution = totalContributionAmountSpan.textContent; var assumptions = "Key Assumptions:\n"; assumptions += "- Annual Salary: " + formatCurrency(salary) + "\n"; assumptions += "- Your Contribution Rate: " + formatPercentage(contributionRate) + "\n"; assumptions += "- Employer Match Formula: " + matchFormula + "\n"; if (matchFormulaSelect.value === 'custom') { assumptions += "- Custom Match Percentage: " + formatPercentage(customMatchPercentage) + "\n"; assumptions += "- Custom Match Cap: " + formatPercentage(customMatchCap) + "\n"; } var resultsText = "— 401k Match Results —\n\n"; resultsText += "Your Contribution: " + yourContribution + "\n"; resultsText += "Employer Match: " + employerMatch + "\n"; resultsText += "Total Retirement Contribution: " + totalContribution + "\n\n"; resultsText += assumptions; navigator.clipboard.writeText(resultsText).then(function() { alert('Results copied to clipboard!'); }).catch(function(err) { console.error('Failed to copy results: ', err); alert('Failed to copy results. Please copy manually.'); }); } matchFormulaSelect.addEventListener('change', function() { if (this.value === 'custom') { customMatchGroup.style.display = 'block'; customMatchCapGroup.style.display = 'block'; } else { customMatchGroup.style.display = 'none'; customMatchCapGroup.style.display = 'none'; customMatchPercentageInput.value = "; customMatchCapInput.value = "; document.getElementById('customMatchPercentageError').style.display = 'none'; document.getElementById('customMatchCapError').style.display = 'none'; } }); function updateChart(salary, contributionRate, employerMatchAmount) { if (chart) { chart.destroy(); } var yourContributionAmount = salary * (contributionRate / 100); var totalContributionAmount = yourContributionAmount + employerMatchAmount; var data = { labels: ['Your Contribution', 'Employer Match'], datasets: [{ label: 'Annual Contribution Amount', data: [yourContributionAmount, employerMatchAmount], backgroundColor: [ 'rgba(0, 74, 153, 0.7)', // Primary color for your contribution 'rgba(40, 167, 69, 0.7)' // Success color for employer match ], borderColor: [ 'rgba(0, 74, 153, 1)', 'rgba(40, 167, 69, 1)' ], borderWidth: 1 }] }; chart = new Chart(ctx, { type: 'bar', data: data, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true, ticks: { callback: function(value) { return formatCurrency(value); } } } }, plugins: { legend: { position: 'top', }, title: { display: true, text: 'Annual Contribution Breakdown' }, tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || "; if (label) { label += ': '; } if (context.parsed.y !== null) { label += formatCurrency(context.parsed.y); } return label; } } } } } }); } // Initialize calculator on load document.addEventListener('DOMContentLoaded', function() { resetCalculator(); // Set default values and calculate // Add event listeners for real-time updates annualSalaryInput.addEventListener('input', calculate401kMatch); contributionRateInput.addEventListener('input', calculate401kMatch); matchFormulaSelect.addEventListener('change', calculate401kMatch); customMatchPercentageInput.addEventListener('input', calculate401kMatch); customMatchCapInput.addEventListener('input', calculate401kMatch); // Initialize FAQ toggles var faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(function(question) { question.addEventListener('click', function() { var faqItem = this.parentElement; faqItem.classList.toggle('open'); }); }); });

Leave a Comment