top of page

401(k) Eligible Compensation: Map Pay Codes to the Plan

Nov 17
13 min read

Updated: 1 day ago

A payroll specialist reviews an open navy plan binder while a colleague points to a payment sheet on an oak desk.

A $600 bonus appears on the payroll preview, but the retirement deduction still reflects regular wages alone. Before changing the deduction, find the plan provision that answers whether this bonus belongs in its calculation. A label such as bonus, taxable or supplemental cannot supply that answer. The employee's percentage election can be correct while the amount to which it is applied is wrong.


401(k) eligible compensation is the pay included under the applicable plan definition for a particular purpose. Establish that definition, its effective period and the employee's applicable participation period before translating it into payroll codes. Then test the resulting employee amounts and the compensation data sent to the plan. A successful file transmission does not establish that the underlying pay basis was correct.


This guide is for U.S. employers administering a conventional private-sector 401(k) plan. It provides an operating method for implementing a supported plan instruction, with fictional examples and a reusable Retirement Compensation Code Matrix. The plan administrator and qualified retirement advisers resolve plan interpretation, statutory requirements, testing and corrections. Other arrangements, including governmental plans, 403(b) plans, SEP and SIMPLE arrangements, require their own applicable definitions and procedures.





Contents



Which pay belongs in this 401(k) calculation?


Begin with the calculation's purpose. Employee elective deferrals, employer matching or nonelective allocations, annual-limit calculations and nondiscrimination testing can require different compensation measures. The IRS identifies these distinctions in its guidance on avoiding compensation errors. One payroll field called retirement earnings can conceal several instructions that need to remain distinguishable.


For each purpose, ask the responsible reviewer to identify the governing definition and any required adjustment. Record whether payroll calculates an amount, supplies underlying data for the administrator's calculation, or does both. An employer that transmits compensation data still needs to know what the receiving field represents. A field that appears informational can affect a later contribution or test.


Keep the employee's election separate from the compensation definition. An election of five percent tells payroll a rate under the applicable arrangement. It does not establish whether a commission, bonus or leave payment enters the base. A fixed-dollar election raises different calculation questions, while eligibility, available pay and limits remain separate controls.


Also distinguish three results: the approved compensation base, the contribution calculated from it and the money ultimately credited to the participant. A correct base can produce an incorrect contribution if an election is applied wrongly. A correct contribution can still have a deposit or allocation problem. Identify which result the present review is intended to prove.


When someone asks whether all gross wages count, return the question with the purpose and plan provision attached. Payroll gross, federal taxable wages and compensation used for a plan calculation are measures with different jobs. Use a reconciliation to explain their relationship rather than selecting whichever existing total is easiest to export.


The plan provisions payroll needs before configuration


Collect the executed plan document, relevant adoption-agreement elections and amendments that apply to the period. Obtain a written implementation instruction identifying the provisions the administrator used. A summary can help people understand the arrangement, but a short implementation email should not quietly replace a conflicting governing provision. Send any inconsistency back to the responsible reviewer before treating it as settled configuration.


The IRS's plan-operation guidance calls for communicating document changes to everyone involved in operating the plan. Turn that into an identifiable handoff: who interpreted the provision, who converted it into payroll requirements, who implemented the settings and who reviewed the resulting calculation? Those may be different people or service providers. Record their actual responsibilities rather than assuming the integration vendor performs every step.


Ask for explicit answers about included and excluded pay, salary-reduction adjustments, employee groups, entry periods, payment timing and annual constraints. Separate a provision effective next plan year from one applicable to the current run. If an amendment has several effective dates, identify the date relevant to each instruction rather than assigning the document one universal start date.


A safe-harbor plan does not make every exclusion automatically acceptable. IRS guidance explains that its compensation definition must satisfy the applicable nondiscrimination requirements. An overtime or bonus exclusion can require additional conditions and analysis. Have the plan's qualified reviewer establish the permitted definition; payroll should implement that conclusion, not decide that an exclusion is valid because the software offers a checkbox.


Retain the supported instruction beside the actual configuration evidence. A screenshot of an enabled setting proves what was selected, while the governing reference explains why it was selected. The approval package needs both. Keep participant information in the organization's approved restricted location and use anonymized records when a vendor demonstration does not require identifiable data.


One earnings code can have several approved uses


Inventory every code that can enter the relevant payroll population. Include ordinary salary or hourly earnings, overtime, commissions, bonuses, paid leave, adjustments and any noncash entries actually used. Review inactive codes if paid history under those codes belongs in the period being reconciled. Looking only at today's default salary code can miss an earlier bonus or a converted code that still affects annual data.


For each code, write a short description of the event it records. Two codes called bonus may represent different awards or processing routes. One generic adjustment code may contain both additional current compensation and a correction to an earlier entry. Identify the underlying transaction before assigning a permanent inclusion rule to its label.


Give each purpose its own approved result: included, excluded, conditional or awaiting instruction. A conditional result needs an executable condition, such as the identified employee group or applicable payment window, with a reference to the reviewed provision. Awaiting instruction needs an owner and a decision time. It should not silently become excluded when the file is generated.


Taxable noncash benefits deserve a separate examination. Their presence in taxable wages does not, by itself, establish how the plan uses them. Ask how a noncash amount affects each approved compensation measure and how a resulting employee deduction can actually be collected. Keep the value, any cash added to cover taxes and the contribution instruction distinguishable.


Similarly, do not assume Form W-2 box 1 is the final answer whenever a plan description mentions W-2 compensation. Applicable definitions can require adjustments for salary reductions. The section 415 compensation regulation addresses these additions and other permitted definitions. Obtain the administrator's specific bridge from the payroll fields to the selected plan measure, including any exclusions, instead of copying one tax-reporting box into every retirement field.


Check code behavior in every route that uses it. An ordinary payroll and an off-cycle bonus can use different deduction defaults even when the earning description is the same. A manual adjustment, imported historical record or reversal can take another path. Ask for evidence of the resulting amount in each relevant route rather than inferring behavior from one configuration screen.


A bonus exposes the difference between two pay bases


Consider a fictional employer whose administrator has confirmed two permitted instructions for this example: regular wages and bonuses enter employee deferral compensation, while an employer nonelective contribution uses regular wages only. Assume a five-percent employee election and a three-percent employer allocation for the illustrated run. These are stated example terms, not a recommendation that another plan adopt those exclusions or percentages.


The employee receives $2,400 regular wages and a $600 bonus. Approved employee deferral compensation is $3,000, producing a $150 deferral. Approved employer allocation compensation is $2,400, producing a $72 employer contribution. The example assumes participation throughout the relevant period, sufficient available pay, no limiting adjustment and no other facts changing the instruction.


If payroll uses regular wages alone for both purposes, it calculates a $120 employee deferral. The $30 difference is evidence that the current calculation does not follow the example's instruction. It is not, by itself, a complete correction amount. Once the incorrect payroll has been paid, the administrator must determine the affected period, participants and appropriate correction route.


If payroll instead uses all $3,000 for the employer allocation, it produces $90 rather than the instructed $72. A company-level total could look plausible while both purpose-specific bases are wrong. Preserve the two calculations separately so the reviewer can identify which setting or data field caused each difference.


Now add a $100 bonus reversal in a later run. The approved period contains a net $500 bonus if the reversal belongs to that same reviewed period and no other adjustment applies. Do not count the original $600 and ignore its reversal, or subtract the reversal twice because it appears in both an adjustment report and the main register. Trace the source transaction and the receiving plan record before approving the revised compensation total.


This arithmetic illustrates a useful trial without turning the guide into a match calculator. Employer matching formulas, annual true-ups, contribution limits and testing need their own plan-specific instructions. Establishing the correct compensation input is one necessary part of that work, not approval of every later calculation.


Fictional approved terms use $3,000 for a five-percent employee deferral of $150 and $2,400 for a three-percent employer allocation of $72.

The same pay run supports two separately approved compensation bases. The illustrated plan terms are assumptions for this example.





Entry dates and later payments need a dated answer


An employee's hire date, plan entry date, earning interval and payment date can differ. Ask which period of compensation the applicable provision uses for each purpose. For safe-harbor arrangements, IRS guidance describes circumstances in which compensation may be based on participation-period pay or the full plan year. Obtain the actual plan answer before excluding an employee's earlier wages from a census or including them in a current deduction calculation.


For example, suppose an employee enters the plan in July and receives a bonus in August for earlier work. The earning description alone does not resolve its treatment. Supply the entry date, award terms, payment date, relevant plan provision and employee election to the administrator. Record the resulting instruction for this event and identify whether it also establishes a rule for future similar payments.


Review departure payments with equal care. The section 415 regulation distinguishes qualifying regular compensation paid after severance from other post-severance payments and sets timing conditions. It also addresses certain leave cashouts separately, while excluding actual post-severance severance pay from section 415 compensation. Do not turn those rules into a universal switch for every plan purpose. Obtain a supported classification of the payment and the applicable plan instruction.


Bring the reviewer facts that a payroll code cannot convey: what the payment represents, why it is due, when employment ended, when it will be paid and whether it would have been paid if employment continued. Keep earned wages, unused leave and a contractual severance installment distinguishable. Combining them in one departure code can make a later compensation review needlessly difficult.


Prior-period corrections need an explicit period assignment. A late wage adjustment, an ordinary new award and legally determined back pay can have different facts and rules. Preserve the original earning and payment dates and obtain instructions for the relevant compensation year or period. The section 415 regulation contains a particular back-pay rule; it does not justify treating every amount labelled retro as the same event.


A fictional bonus is earned in June, the employee enters the plan July 1, and the bonus is paid August 15.

Preserve all three dates. The applicable plan provision and reviewed instruction establish how this event enters each calculation.


Retirement Compensation Code Matrix


Complete the plan instruction once, then repeat the code and trial sections for every relevant earning code. Use separate rows or records when one code has different treatment by employee group, purpose or effective period. This worksheet documents an approved interpretation and its implementation; it does not determine whether a plan provision is legally permitted.


Governing instruction

Plan and employing entity: ____________________

Document, adoption agreement and amendment versions: ____________________

Applicable plan, limitation and payroll periods: ____________________

Administrator or qualified reviewer and dated instruction: ____________________

Employee population and participation-period rule: ____________________

Repeat for each earning code

Code identifier and actual transaction description: ____________________

Employee group and applicable effective dates: ____________________

Employee deferral compensation treatment and provision: ____________________

Employer match compensation treatment and provision: ____________________

Other employer allocation treatment and provision: ____________________

Testing and limit-data fields requested by the administrator: ____________________

Required salary-reduction or other adjustments: ____________________

Entry, departure, leave or payment-timing conditions: ____________________

Trial and reconciliation

Anonymized employee, run and source transaction references: ____________________

Expected compensation total for each reviewed purpose: ____________________

Actual payroll base and resulting employee contribution: ____________________

Actual employer calculation or exported compensation fields: ____________________

Difference, explanation and affected population: ____________________

Reversal, off-cycle and history-conversion trial results: ____________________

Approval and continuing work

Unresolved instruction, decision owner and required response time: ____________________

Approved configuration version and first applicable run: ____________________

Payroll reviewer, administrator acceptance and retained evidence: ____________________

Historical-error referral and separate correction instruction: ____________________

Next event that requires this mapping to be reviewed: ____________________

An approval should identify the tested population and purposes. If the match base was checked but the testing export was not, record that remaining work openly. Copying the same approved status across all fields would erase the distinction the matrix is meant to preserve.


Trial results that reconcile by employee and purpose


Choose trial records that exercise the actual instruction. Include ordinary earnings and each material special code, a mid-period participation event where relevant, a reversal and any supported off-cycle route. Add a conversion case when the current provider receives history from an older system. The aim is to expose different behavior, not collect a large number of identical salary examples.


Calculate the expected compensation totals independently from the settings being tested. Start with dated source transactions and apply the approved inclusion rules. Then compare the expected employee total for each purpose with the payroll result and the receiving field. A report calculated from the same incorrect code flag is not an independent check simply because it has a different name.


For the fictional bonus case, the reviewer should be able to trace $2,400 and $600 to $3,000 of deferral compensation, then connect that base to the five-percent election and $150 result. The employer's separate $2,400 base and $72 allocation require their own trace. Retain the preview version so a later configuration change does not replace the evidence that was actually reviewed.


Compare employees as well as totals. One employee's omitted bonus can be offset by another employee's wrongly included earning in a company sum. Review the affected codes and population directly. Record whether the issue applies to one transaction, one group, a date range or the entire mapped field, and extend the review accordingly.


Ask the receiving administrator or recordkeeper to confirm the meaning of the transmitted compensation fields. Distinguish a current-run amount, a period-to-date total and a cumulative annual balance. If a cumulative amount is loaded as an additional current transaction, correct arithmetic at the payroll source can still produce incorrect plan data. Agree how reversals, replacement files and previously accepted records are identified.


Finally, check the relevant annual controls separately. The annual compensation ceiling and elective-deferral limit serve different purposes. IRS guidance explains that reaching the compensation ceiling does not automatically stop all employee deferrals unless the plan terms require that result. Obtain the current year's applicable limits and administrator instructions rather than using a historic IRS example or one generic stop flag as the specification.


Keep the prior-year wage measure used for Roth catch-up routing separate from these plan compensation bases. Ask the administrator which measure the requested file field needs, even when both figures come from the same payroll history.


When the existing setup disagrees with the document


Preserve the old configuration, the approved document references and the calculations that revealed the difference. Identify the earliest affected date and the populations that used the setting. A recently discovered error may have operated through several bonus cycles or a provider conversion. Do not assume its beginning is the date somebody noticed it.


Give the administrator a usable discrepancy package: expected and actual compensation by purpose, employee-level differences, contribution records, payment dates, elections and the relevant document versions. Separate missing source facts from confirmed calculation differences. That lets the responsible adviser assess the issue without treating an unexplained balancing entry as a solution.


The IRS lists compensation-definition failures among retirement-plan errors addressed through its correction framework. Have the qualified reviewer determine the applicable current route, correction amounts, earnings adjustments, notices and submissions. Do not infer eligibility for self-correction from a general article, or promise that withholding the apparent shortfall from the next paycheck will resolve a missed-deferral problem.


Keep prospective repair and historical correction as related but separately authorized work. Changing the code flag can improve the next calculation while leaving earlier periods unresolved. Conversely, completing a historical contribution does not prove that the next bonus will use the repaired base. Track both to their own evidence of completion.


If a decision is still outstanding at payroll cutoff, escalate the specific unresolved contribution or data instruction to the authorized owner. Obtain an approved processing route that respects the employee's wage-payment obligations and applicable plan requirements. Avoid placing an entire wage payment on hold merely because an unrelated retirement mapping question remains open.


Keep the mapping current through changes and year-end


Review the matrix when the plan is amended, a new pay code is created, an earning's meaning changes, a provider is replaced or a new employee group enters the arrangement. A pay code copied from an existing one can inherit an inclusion setting that was valid only for the original transaction. Make the retirement review part of introducing the code, before its first payment.


During a payroll conversion, preserve the old code, new code, transaction dates and accumulated compensation by purpose. Test how imported history affects annual totals without issuing new wages or new contributions for amounts already processed. Agree who resolves a difference when the payroll import is accepted but the plan administrator's opening data does not reconcile.


At year-end, reconcile the requested census fields to the supported payroll bridge and retain explanations for differences from gross or tax wages. Ask the administrator which population and periods are required, including employees who left or entered during the year. Do not delete a former employee from the supporting population merely because the current payroll is empty for that person.


The Department of Labor describes a written plan and an effective recordkeeping system as essential plan elements and emphasizes monitoring service providers. Keep an employer owner for the compensation handoff even when a provider calculates deductions or transmits files. The useful evidence is a dated instruction, a tested implementation and an accepted result with outstanding work assigned.


Questions about compensation and contributions


Does a taxable bonus always count for 401(k) contributions?

Obtain the applicable plan definition for the contribution being calculated. A taxable bonus can require different treatment for different purposes, and any exclusion must satisfy the applicable rules. Preserve the administrator's supported instruction with the code mapping rather than treating the tax category as the retirement decision.


Can payroll use one compensation total for every purpose?

Only use a shared field after the responsible reviewer confirms that its definition, population, period and adjustments satisfy every purpose assigned to it. Even where a shared measure is appropriate, retain the explanation. Otherwise, a later amendment can change one purpose while the shared flag unintentionally changes all of them.


Is a zero-dollar deduction proof that the earning is excluded?

No. The result can reflect an election, available pay, participation, a limit, run defaults or a configuration error. Trace the compensation base and the applicable instruction separately from the deduction result. Resolve the cause before reusing the result as an inclusion rule for other employees.


Does a clean deposit report close a compensation error?

A deposit record addresses what reached the plan. Review whether the amount was calculated from the right compensation first, then trace any required correction through the plan's accepted process. Preserve the connection between the original error, the approved repair and the resulting participant record.






Explore more in the HR and payroll guide library.




Ben Scott, HR Decision Guide author

About the author

Ben Scott writes and maintains payroll decision guides for founders and operators. His work focuses on execution realities and how decisions hold up under growth, complexity, and controls and documentation pressure. He works hands-on in HR and leave-management roles that intersect with payroll-adjacent workflows such as benefits coordination, cutovers, and compliance-driven process controls.


Author profile: Ben Scott | LinkedIn

 
 

Disclosure: Some links in this page may be affiliate links, which means we may earn a commission if you sign up at no additional cost to you. This does not affect our analysis or conclusions.

bottom of page