401(k) Top-Heavy Test Calculator (IRC §416)
Tests whether key employees hold more than 60% of a 401(k) plan's balances, applying family attribution, the distribution lookback and the rollover and no-service exclusions, then prices the top-heavy minimum contribution for each non-key employee. For small-business owners, plan administrators and the third-party administrators who run annual compliance testing. The 401(k) ADP test calculator covers a different annual test: it compares deferral rates between highly compensated and other employees. This one tests account balances, and small plans fail it far more often than owners expect.
Download This Calculator
This spreadsheet is the form above, and every figure on this page is a formula in it. Your own version could become the annual census your administrator fills in for each client plan, or an API that runs the test straight from your recordkeeper's data.
Owner at 50.85%, Plan at 75.97%
The owner holds 50.85% of the raw balances. Family attribution, the added-back in-service withdrawal, the excluded rollover and the departed hygienist each push the ratio up, to 75.97%: $123,000 over the 60% line.
The Minimum, Per Employee
3% of pay, or the highest key employee's rate if that is lower, and key employees' deferrals count. Here that's $6,840 across four staff. If the owner's 2% deferral were the only key contribution, it would fall to $4,560.
Safe Harbor at the Same Price
A 3% safe harbor nonelective costs the same $6,840 for non-key staff. It also exempts the plan from the top-heavy rules and takes it out of the ADP test, which this owner, deferring 7.39%, would likely fail.
Frequently Asked Questions
The method
A plan is top-heavy for a plan year when key employees hold more than 60% of the counted balances on the determination date, the last day of the prior plan year. To test the 2027 plan year, you use balances at December 31, 2026.
Key employees are:
- more-than-5% owners;
- 1% owners paid more than $150,000 (not indexed);
- officers paid more than the IRC §416(i) threshold: $235,000 for 2026, rising to $245,000 for 2027 under IRS Notice 2026-66.
Ownership is attributed within the family, so an owner's spouse, children, grandchildren and parents count as owners too. No more than 50 officers count, or the greater of 3 and 10% of employees if that is fewer.
Counted balance = balance on the determination date + distributions in the lookback period − rollovers from unrelated plans. The lookback is the year ending on the determination date, extended to five years for in-service distributions. Anyone who did no work in that year is left out entirely, and so are former key employees.
Top-heavy ratio = key employees' counted balances ÷ everyone's counted balances
If the plan is top-heavy, every non-key employee employed at year end is owed an employer contribution. It is 3% of pay, or the highest contribution rate of any key employee if that is lower. Key employees' own deferrals count toward that highest rate, and non-key employees' deferrals don't count toward their minimum.
The worked plan belongs to a dental practice. The owner, the owner's spouse (who runs the office) and an adult child (a hygienist) work there with four other staff. A former hygienist left two years ago with $95,000 still in the plan.
Is my 401(k) top-heavy if the owner holds less than 60%?
It can be. Here the owner holds 50.85% of the raw balances, and the plan is 75.97% top-heavy once the rules are applied. Each adjustment the statute requires pushes the ratio up:
| Step | Key employees' share |
|---|---|
| Direct owner only, raw balances | 50.85% |
| Add the spouse and child by family attribution | 59.32% |
| Add back the owner's $60,000 in-service distribution | 61.90% |
| Remove a staff member's $80,000 rollover from a prior employer | 67.63% |
| Remove the former hygienist, who did no work in the year | 75.97% |
The naive check stops at the first line and concludes there is nothing to worry about. Family attribution alone takes it to 59.32%, just under the line. Two of the adjustments work against the plan here, and they're easy to get backwards:
- An owner's in-service withdrawal doesn't shrink the owner's share. It is added back for five years.
- A non-key employee's large rollover doesn't help either. It is excluded, so it can't dilute the key share.
The decision this changes: key balances are $123,000 over the 60% line. A gap that size is unlikely to close in a year, so this practice should expect to be top-heavy again and budget for it.
What is the top-heavy minimum contribution?
3% of pay for each non-key employee, unless every key employee contributed less than 3%. Here that's $6,840 the practice owes this year.
The minimum rate is capped at the highest contribution rate of any key employee, and key employees' elective deferrals count. The owner defers $25,500 on $345,000 of pay, which is 7.39%. The spouse defers 10.00%, so the minimum is the full 3%:
| Non-key employee | Pay | Minimum owed |
|---|---|---|
| Staff A | $72,000 | $2,160 |
| Staff B | $58,000 | $1,740 |
| Staff C | $52,000 | $1,560 |
| Staff D | $46,000 | $1,380 |
| Total | $6,840 |
The workbook's tests show how sensitive it is to what key employees put in:
- If the only key contribution is a 2% deferral by the owner, the minimum falls to 2% and the cost to $4,560.
- If no key employee contributes at all, nothing is owed, even though the plan is still top-heavy.
Non-key employees' own deferrals never count, but employer contributions they already received do. A $1,000 match to Staff A cuts that employee's minimum to $1,160.
A missed minimum is a qualification failure. The IRS fix is a corrective contribution adjusted for lost earnings, made under the Self-Correction or Voluntary Correction Program. This is not tax or legal advice.
Does a safe harbor 401(k) avoid the top-heavy test?
Yes, if the plan has only elective deferrals and safe harbor contributions. Here a 3% safe harbor nonelective would cost the same $6,840.
A safe harbor 401(k) is exempt from the top-heavy rules as long as it receives only elective deferrals and safe harbor contributions. Add a discretionary profit-sharing contribution and the exemption is gone.
When the minimum rate is the full 3%, a 3% nonelective safe harbor costs the same as the top-heavy minimum for non-key staff, and it buys more. The safe harbor also takes the plan out of the ADP test, which this owner, deferring 7.39% while staff defer far less, would likely fail.
The trade-off is commitment. A safe harbor contribution must be made every year the plan is safe harbor, whatever the test would have shown, and it has to be in the plan document with its own notice and timing rules. Set plan type to 2 in the calculator to see the exempt result.
Who counts as a key employee for the top-heavy test?
Owners, highly paid officers and owners' family members. The thresholds are strict "more than" tests, so being paid exactly at the line doesn't make someone key.
The workbook's tests check each boundary:
- A 2% owner paid $160,000 is key; the same owner paid exactly $150,000 is not.
- An officer paid $240,000 is key at the 2026 threshold of $235,000; one paid exactly $235,000 is not.
- The ratio itself works the same way: exactly 60.00% is not top-heavy.
Family attribution is the one that catches small businesses. The owner's spouse and child here own nothing directly and are still key employees. In a family business, that often decides the test before any balances are counted.
Officer status is limited too. With seven employees who worked in the year, no more than three officers can count. The calculator flags a census that marks more.
The IRS's own worked example, Hocking Corp., reproduces exactly. Key employees (the owner, the owner's spouse and their child) hold $118,000 of $133,000 counted once a departed employee is removed, an 88.72% ratio. The IRS page states 88%.
What this calculator does not do
Stated plainly, so you know when your administrator needs more:
- Eight participants, one plan. It doesn't aggregate the required or permissive groups of related plans, or a defined benefit plan, which test top-heavy together.
- One compensation figure per person, used both for key status (the determination year) and for the minimum (the plan year). In practice they can differ.
- The former key employee exclusion isn't modeled. Someone who was key in an earlier year but isn't now should be left out; enter them as not having worked in the year, or remove them.
- Family attribution is a yes-or-no input. It doesn't trace attribution through entities or apply the full IRC §318 rules.
- Minimum contributions only. No vesting schedule, no defined benefit minimum, and no lost-earnings calculation for a correction.
- No safe harbor timing. Notice deadlines and mid-year adoption rules are outside its scope.
Sources
- IRS, "Is my 401(k) top-heavy?"
- 26 U.S. Code § 416, Special rules for top-heavy plans (Cornell LII)
- IRS Notice 2026-66, 2027 limitations adjusted as provided in section 415(d)
- IRS, 401(k) Plan Fix-It Guide: the plan was top-heavy and required minimum contributions were not made
- Ascensus, "Top-Heavy Testing"
- Newfront, "401(k)ology: Stumbling into the Top-Heavy Zone"
Transform Your Excel Models into Web Tools
Turn your complex Excel calculations into online calculators, web forms, and APIs. No coding required — upload your spreadsheet and publish your calculations instantly.
Calculations are for estimation and planning purposes and do not constitute tax or legal advice. Key employee status, compensation definitions and the top-heavy exemption depend on your plan document, and users should verify important results for their specific situations. No signup required. Calculations performed securely.