🏛️ DC does not tax nonresidents

Work in DC, Live in Maryland: How Taxes Work

Maryland residents who work in Washington DC owe income tax only to Maryland. The District of Columbia does not tax nonresidents on wages — period. File Form D-4A with your DC employer, and they will withhold Maryland state and county income tax instead of DC tax. You file a single Maryland resident return (Form 502). The key difference from the DC-Virginia arrangement is that Maryland adds a county piggyback tax on top of the state rate, so your combined obligation is typically higher than a Virginia commuter's.

No DC tax MD county tax applies D-4A form

What are the tax layers for a MD resident working in DC?

Tax layerOwed?Filed where?
Federal income taxYesIRS Form 1040
DC income taxNo (nonresident exemption)No DC return needed
Maryland state income taxYesMD Form 502
Maryland county income taxYes (piggyback)Included in MD Form 502

Setup

How do I set up withholding with my DC employer as a Maryland resident?

  1. File DC Form D-4A (Certificate of Nonresidence) with your employer. This certifies you do not live in DC.
  2. Provide your Maryland county information so payroll can calculate the correct Maryland state plus county withholding rate.
  3. Provide Maryland Form MW507 if your employer requests it for Maryland withholding setup.
  4. Verify your pay stub shows Maryland withholding (state + county) and zero DC withholding.

If your DC employer lacks the payroll infrastructure to withhold Maryland taxes, claim exempt from DC tax on D-4A and make quarterly estimated payments to Maryland using Form PV. File your Maryland Form 502 at year-end as usual.

Why does the Maryland county piggyback tax matter so much here?

Maryland's county income tax is a local tax that piggybacks on your state income tax. Every Maryland county sets its own rate, which is applied to your Maryland taxable income. This additional layer is significant — it can add several percentage points to your effective tax rate beyond the state tax alone.

For DC commuters from Maryland, this means your total state-plus-local tax rate is noticeably higher than what Virginia commuters pay. Virginia has no local income tax, so VA residents working in DC pay only Virginia's state rate. This county tax difference is the single biggest factor in take-home pay comparisons between Maryland and Virginia workers who do the same job in DC.

County rates vary. Check the Comptroller of Maryland website for current rates by county. The rate for Montgomery County, Prince George's County and other DC-suburbs counties is published annually.

🧮
Illustrative example: Raj lives in Prince George's County, MD and works in downtown DC, earning $82,000. With D-4A on file, his employer withholds Maryland state income tax plus the PG County piggyback rate. Raj files only MD Form 502. He owes nothing to DC. His Virginia-resident coworker at the same salary pays only Virginia's state rate — which is lower than Raj's combined MD state + county rate on the same $82,000.
(Verify PG County rate at marylandtaxes.gov.)

What about federal employees and military members working in DC?

The DC metro area has the highest concentration of federal workers in the country. For Maryland residents:

  • Federal civilian employees: File D-4A with your agency just like a private-sector employer. Pay only Maryland state and county income tax.
  • Active-duty military: Under the Servicemembers Civil Relief Act (SCRA), military members pay income tax only to their state of legal residence. If Maryland is your legal residence, you pay MD tax. DC does not tax you regardless.
  • Military spouses: Under the Military Spouses Residency Relief Act, a military spouse can elect the servicemember's state of legal residence for income tax purposes.

What if DC tax was withheld by mistake — how do I get a refund?

If your employer withheld DC income tax before you filed D-4A:

  1. File D-4A immediately to correct future withholding.
  2. At year-end, file DC Form D-40B (Nonresident Request for Refund) to reclaim all DC withholding.
  3. File Maryland Form 502 and pay any Maryland tax balance from the under-withholding period.

How does DC compare to working in Virginia for a Maryland resident?

If you live in Maryland and could work in either DC or Virginia:

  • Working in DC: No DC tax. Pay MD state + county tax. No DC return. See this page.
  • Working in Virginia: VA-MD reciprocity exempts you from VA tax. Pay MD state + county tax. No VA return. See VA to MD guide.

The bottom line is the same for both: you pay Maryland's combined state-plus-county rate regardless of which jurisdiction your office sits in. The difference is only in the forms — D-4A for DC, VA-4 for Virginia.

Why does DC have this nonresident exemption — is it permanent?

DC's inability to tax nonresidents stems from the District of Columbia Home Rule Act, which limits the District's taxing authority. Because DC is not a state but a federal district governed partly by Congress, its power to levy taxes is constrained by federal statute. This constraint has been in place since Home Rule was granted in 1973 and cannot be changed unilaterally by DC's local government — it would require an act of Congress.

This makes DC's nonresident exemption more durable than a reciprocity agreement. A reciprocity agreement can be terminated by either state (as Minnesota did with Wisconsin in 2010). DC's exemption is structural — it is embedded in federal law, not a voluntary compact.

Congress has periodically considered allowing DC to tax nonresidents, which would significantly increase DC revenue. However, strong opposition from Maryland and Virginia — whose residents make up the majority of DC commuters — has prevented any change. For now, the exemption is effectively permanent absent major legislative action.

Does this apply to teleworkers and hybrid schedules?

Yes. If you work remotely from Maryland for a DC-based employer, DC still does not tax you because you are not a DC resident. Whether you commute to DC or work from your Maryland home, the result is the same. Make sure D-4A is on file so your employer withholds Maryland tax, not DC tax.

For broader multi-state remote work scenarios, see our remote work two-state tax guide. For take-home estimates, try the Maryland salary calculator.

Questions

DC-MD commuter tax FAQ

Do Maryland residents owe DC income tax on wages earned in DC?

No. DC does not tax nonresidents on wages. As a Maryland resident working in DC, you owe income tax only to Maryland — both state and county. File D-4A with your DC employer to ensure DC tax is not withheld.

Do I owe Maryland county tax on my DC wages?

Yes. Maryland's county piggyback income tax applies to all income of Maryland residents, regardless of where it is earned. Your DC wages are subject to both Maryland state income tax and your county's local income tax rate.

How do I set up withholding with my DC employer as a MD resident?

File DC Form D-4A (Certificate of Nonresidence) with your employer to certify you are not a DC resident. Provide your Maryland withholding information including your county so the employer can withhold Maryland state and county tax. If your DC employer cannot withhold Maryland tax, make quarterly estimated payments to Maryland using Form PV.

Is the DC nonresident exemption better than Maryland-Virginia reciprocity?

They are different mechanisms with the same practical effect. DC unilaterally exempts all nonresidents. MD-VA reciprocity is a bilateral agreement between two states. For a Maryland resident, both result in paying only Maryland tax on wages. However, DC's exemption is broader — it applies to residents of any state, not just reciprocal partners.

What happens if I move from Maryland to DC mid-year?

You become a part-year resident of both jurisdictions. For the months you lived in Maryland, you file MD Form 502 as a part-year resident. For the months you live in DC, you file DC Form D-40 as a part-year resident. Each jurisdiction taxes income earned during your residency period there. Notify your employer to update withholding when you move.

Mustafa Bilgic
Reviewed & maintained by
Mustafa Bilgic — Editor, SalaryCalculator.us

Tax rules referenced from the DC Office of Tax and Revenue and the Comptroller of Maryland.

  • Sources: DC Office of Tax and Revenue (D-4A, D-40B) · Comptroller of Maryland (Form 502, county piggyback rates).
  • 🔄 Last updated July 31, 2026 · Tax year 2026

← Back to the full salary calculator · Related: DC to VA taxes · MD to VA taxes · MD salary calculator · DC salary calculator · All reciprocity agreements · Annual salary calculator