How to format money amounts in an EFW2 file
Every money field in an EFW2 record is written in cents, right-aligned and padded on the left with zeros, with no punctuation and no sign. $50,000.00 in an eleven-character field is:
00005000000
That is five million cents, padded with zeros to fill the field.
Characters a money field cannot contain
Decimal point
The last two digits are cents because of where they sit. The field is read as a whole number of cents and divided by 100 by whoever reads it.
Thousands separator
A comma in a money field makes the record defective.
Dollar sign
A dollar sign also makes the record defective, and a spreadsheet can add one without being asked. A column formatted as Currency exports to CSV as $50,000.00, and that string is not a number. The converter reports it instead of writing it:
"LocalWages" value "$50,000.00" is not a valid number
Minus sign
A negative amount cannot be written, so the converter treats a negative value as an error. If a payroll correction produces a negative annual figure, that is something to resolve in the payroll.
Field widths
| Where | Width | Holds up to |
|---|---|---|
| RW and RS records | 11 | $999,999,999.99 |
| RT totals record | 15 | Past any employer's payroll |
The RT record sums every employee, so its fields are wider. Eleven characters would overflow with a few thousand people.
An amount above $999,999,999.99 on an individual record is an error. A money field that is too narrow for its value does not fail visibly: the value is cut from the left, losing its high-order digits, so a billion dollars would be written as a much smaller and entirely plausible number.
Zero amounts
A money field with nothing in it is eleven zeros, not eleven spaces. 00000000000 means zero dollars. In a money field there is no difference between zero and blank.
Most of a real record is zero amounts. An RW record has twenty-seven money fields, and most employers use six of them.
Rounding
Amounts are rounded to the nearest cent as they are written. The converter uses whatever your payroll produced and does not adjust amounts to make a rate check come out even.
It does tell you when a figure looks wrong. Social Security tax is checked against 6.2% of Social Security wages, and Medicare tax against 1.45% of Medicare wages. A rounding variance of up to a dollar is reported in different wording from a real discrepancy, because only a real discrepancy needs fixing.
Checking a money field by hand
Take the eleven characters, remove the leading zeros, and read the last two digits as cents. 00000112500 becomes 112500, which is $1,125.00. To go the other way, write the amount in cents with no punctuation and pad it on the left with zeros to eleven characters.