# Box 12 of the W 2 Form With Code Q: Nontaxable Combat Pay

- Canonical: https://schematax.com/blog/box-12-of-the-w-2-form-with-code-q
- Author: Schema Tax (https://schematax.com)
- Published: 2026-05-11T04:45:37.000Z
- Updated: 2026-05-11T04:45:37.000Z

Box 12 of the W 2 form with code Q shows nontaxable combat pay: military pay earned for a month of combat zone service and excluded from income. Military employers report it there instead of in Box 1. The IRS still lets the amount count for the earned income credit and for IRA contribution limits.

## What code Q reports: nontaxable combat pay for service members

Code Q reports combat pay that is excluded from a service member's income. Combat pay, which the IRS also calls combat zone compensation, is pay a member of the U.S. Armed Forces receives for a month spent serving in a combat zone, or hospitalized because of wounds, disease or injury incurred there.

The [IRS General Instructions for Forms W-2 and W-3 (2026)](https://www.irs.gov/instructions/iw2w3) give code Q one sentence: "If you are a military employer, report any nontaxable combat pay in box 12." The instruction is addressed to military employers, so a civilian employer's W-2 has no reason to carry it.

[IRS Publication 3 (2025), Armed Forces' Tax Guide](https://www.irs.gov/publications/p3), describes what qualifies. Combat zone pay is pay received by a member of the Armed Forces who serves in "a combat zone as designated by the President in an Executive order," in a qualified hazardous duty area while receiving hostile fire or imminent danger pay, or outside those areas when the Department of Defense certifies the service is in direct support of operations there and the member receives hostile fire or imminent danger pay.

The month matters more than the location of the paycheck. Publication 3 says the pay must be for a month in which you "served in a combat zone" or "were hospitalized as a result of wounds, disease, or injury incurred while serving in the combat zone." It adds that you "don't have to receive the excluded pay while you are in a combat zone, are hospitalized, or in the same year you served in a combat zone."

Publication 3 lists items that can be excluded when earned in a qualifying month. They include "active duty pay earned in any month you served in a combat zone," "imminent danger/hostile fire pay," a reenlistment bonus when the reenlistment occurs in such a month, and pay for accrued leave earned in such a month. It also says "retirement pay and pensions don't qualify for the combat zone exclusion."

## Why is code Q combat pay missing from Box 1 but not ignored?

Code Q combat pay is missing from Box 1 because the law excludes it from income, and Box 1 holds taxable wages. It is not ignored, because the IRS lets the excluded amount count in two places where earned income or compensation matters: the earned income credit and the limits on IRA contributions.

Publication 3 explains how the exclusion reaches the return: "Ordinarily, you don't have to do anything for this exclusion to apply. The exclusion will be reflected on your Form W-2." It says "the wages shown in box 1 of your 2025 Form W-2 shouldn't include military pay excluded from your income under the combat zone exclusion provisions."

So Box 1 and code Q split a service member's pay in two. Box 1 holds the taxable part, and code Q holds the part the exclusion removed. Neither number alone is total military pay for the year. Anyone adding up income for a loan file or a benefits form needs to know which of the two the form is asking for.

The excluded pay still matters on a return. The [2025 Instructions for Form 1040](https://www.irs.gov/instructions/i1040gi) give it its own line: "If you elect to include your nontaxable combat pay in your earned income when figuring the EIC, enter the amount on line 1i." The IRA rules count it as compensation without any election. Both uses are covered in the next two sections.

The post on [what to do with each Box 12 code on your taxes](/blog/what-do-i-put-for-box-12-on-my-taxes) lists code Q beside the other codes and the return lines they reach.

## The code Q election for the earned income credit

The code Q election lets a service member count nontaxable combat pay as earned income when figuring the earned income credit (EIC), a credit for certain people who work that can produce a refund. Including it can raise or lower the credit, so the IRS instructions say to figure the credit both ways before choosing.

[IRS Publication 596 (2025), Earned Income Credit](https://www.irs.gov/publications/p596), sets the general rule: "Employee pay is earned income only if it is taxable," and then names the exception: "nontaxable combat pay, which you can choose to include in earned income." It also says "the amount of your nontaxable combat pay should be shown on your Form W-2, in box 12, with code Q."

Publication 596 states two conditions on the choice. "If you make the election, you must include in earned income all nontaxable combat pay you received." And on joint returns: "If you are filing a joint return and both you and your spouse received nontaxable combat pay, you can each make your own election. In other words, if one of you makes the election, the other one can also make it but doesn't have to."

### A step list for a fictional service member

The figures below are fictional, and the steps describe what the IRS text says rather than which choice to make. Sergeant Casey Example, SSN shown as `XXX-XX-1234`, has a 2025 W-2 with $24,000 in Box 1 and `Q 18000.00` in Box 12.

1. **Read the code Q figure.** The 2025 Form 1040 instructions say "the amount of your nontaxable combat pay should be shown in box 12 of Form(s) W-2 with code Q." Casey's figure is $18,000.
2. **Confirm Box 1 leaves it out.** Publication 3 says Box 1 "shouldn't include military pay excluded from your income." Casey's $24,000 should hold only taxable pay.
3. **Note the all-or-nothing rule.** Publication 596 says that with the election "you must include in earned income all nontaxable combat pay you received." Casey cannot count $9,000 and leave out the rest.
4. **Figure the credit both ways.** The EIC worksheet in the 1040 instructions says "electing to include nontaxable combat pay may increase or decrease your EIC. Figure the credit with and without your nontaxable combat pay before making the election."
5. **Record the choice where the instructions say.** If the pay is included, the worksheet says to "also enter the amount of your nontaxable combat pay on line 1i of Form 1040 or 1040-SR."
6. **Check a spouse's form separately.** If Casey files jointly and the spouse also has code Q, the instructions say each spouse "can each make your own election."

Publication 3 shows why step 4 exists. In its first example, a couple with $10,000 of nontaxable combat zone pay finds a credit of $2,389 without it and $4,213 with it, so they elect. In its second, $35,000 of combat pay lowers the credit to $2,242, so they decide not to make the election. The same code Q line can point either way.

## Can code Q combat pay support an IRA contribution?

Code Q combat pay counts as compensation for IRA purposes, according to IRS Publication 590-A. Compensation is the pay that sets how much you can put into an IRA for the year. Because combat pay counts, a service member whose Box 1 is low can still have compensation from code Q.

[IRS Publication 590-A (2025), Contributions to Individual Retirement Arrangements](https://www.irs.gov/publications/p590a), says: "If you were a member of the U.S. Armed Forces, compensation includes any nontaxable combat pay you received. This amount should be reported in box 12 of your 2025 Form W-2 with code Q."

Publication 3 gives the same rule from the military side: "For IRA purposes, your compensation includes nontaxable combat zone pay. Even though you don't have to include the combat zone pay in your gross income, you do include it in your compensation when figuring the limits on contributions, and on deductions for contributions, to IRAs."

Publication 590-A also covers a year with no taxable work: "contributions can't be made to your IRA unless you receive taxable alimony, nontaxable combat pay, or military differential pay, or file a joint return with a spouse who has compensation." Unlike the EIC, this treatment is not an election. The pay counts as compensation whether or not the EIC election is made.

Whether to contribute, and to which kind of IRA, depends on facts these publications leave to the reader and a tax professional. The rule they state is narrow: the code Q figure counts toward compensation.

## Code Q on a W2 with a partial month in a combat zone

Code Q on a W2 can include pay for a whole month even when the service member spent only part of that month in a combat zone. Publication 3 treats a partial month as a full one. Commissioned officers face a monthly cap on the exclusion, so their code Q can be smaller than their total pay for those months.

Publication 3 says: "If you serve in a combat zone for any part of 1 or more days during a particular month, you are entitled to a combat zone exclusion for that entire month." For example, a fictional deployment from March 28 to September 3 covers parts of seven calendar months, March through September, and all seven can be qualifying months.

The officer cap is a separate rule. Publication 3 says "if you are an enlisted member, warrant officer, or commissioned warrant officer, none of your combat zone pay is included in your income for tax purposes." For other commissioned officers, the exclusion "is limited to the highest rate of enlisted pay (plus imminent danger/hostile fire pay you received) for each month during any part of which you served in a combat zone or were hospitalized." It gives the 2025 figure as "$10,983 per month (that is, $10,758 for the highest enlisted pay + $225 for imminent danger pay)."

For a commissioned officer whose monthly pay is above that figure, code Q holds the capped amount and the rest of the month's pay goes to Box 1. The two numbers together still equal the pay for those months, so a high Box 1 next to code Q is not by itself an error for an officer.

Hospitalization has its own time limit. Publication 3 says "you can't exclude any military pay received for any month of service that begins more than 2 years after the end of combat activities in the combat zone."

Code Q is not the only military entry in Box 12. Code P can show [excludable moving expense reimbursements for a military move](/blog/box-12-code-p-moving-expense-reimbursement), and a family adopting during the year may also see [adoption benefits under code T](/blog/box-12-code-t-adoption-benefits).

## Code Q amount that does not match the LES: when to ask for a W-2c

A code Q amount that does not match your Leave and Earnings Statements (LES), the military pay statements, is a reason to contact your finance office. Publication 3 says that if Box 1 includes pay that should have been excluded, you need a corrected W-2, the Form W-2c, from the finance office.

Publication 3 is direct about Box 1: "If it does, you will need to get a corrected Form W-2 from your finance office. You can't exclude as combat zone pay any wages shown in box 1 of Form W-2." In other words, the return follows the W-2, so a wrong split between Box 1 and code Q is fixed on the form, not on the return.

A practical comparison starts with the qualifying months. List each month with any day in a combat zone, since Publication 3 counts a partial month as a full one. Add the pay your statements show for those months, then compare the total with code Q. For a commissioned officer, apply the monthly cap before comparing.

A gap can have ordinary causes. Pay for a qualifying month that arrived in a later year can still be excluded, because Publication 3 says you do not have to receive it "in the same year you served in a combat zone." Pay for accrued leave has its own condition; Publication 3 says "the DoD must determine that the unused leave was earned during that period."

Rarely seen codes like Q are easy to misread, and the post on [retired and rarely seen Box 12 codes](/blog/w2-box-12-codes#retired-and-rarely-seen-box-12-codes) covers the letters most workers never meet. How a W-2c changes a Box 12 entry is set out in the post on [correcting a wrong Box 12 code on a W-2c](/blog/box-12-instructions-w2#how-is-a-wrong-box-12-code-corrected-on-a-w-2c).

A household with a deployment year can end up with an original W-2, a W-2c and a spouse's civilian W-2 for the same year. Schema Tax reads each W-2 into the same fixed fields, Box 1 next to each Box 12 code, so the code Q figures can be compared in one sheet; [the security section](/#security) explains how it masks Social Security numbers before storage.
