An attorney with a regular office who drives to a courthouse for a hearing, or a consultant with a regular office who drives to a client site for a single project, is not commuting on that trip. The IRS treats a drive to a temporary work location as deductible business mileage even without a home office, which surprises a lot of self-employed professionals who assumed the home-office rule was the only door in.
Source: IRS Publication 463, on travel between a regular place of business and a temporary work location.
The rule that gets missed: temporary work location
Commuting, driving between home and a regular, fixed place of business, is never deductible. But a drive to a temporary work location, one you realistically expect to work at for a limited period, generally under a year, is deductible business mileage, even on a day you never go near your regular office at all. This is the rule that actually applies to most attorney and consultant client-facing driving, independent of whether the taxpayer also qualifies for the home-office exception.
How this plays out for an attorney
An attorney with a law office drives to a courthouse across town for a two-day trial. The courthouse is a temporary work location, so the round trip is deductible, both days, whether the attorney stops at the office first or drives there directly from home. If that same attorney is assigned to the same courthouse for a six-month special proceeding, the analysis gets closer, since long-term, ongoing work at one location starts to look less "temporary" the longer it runs.
How this plays out for a consultant
A consultant with a regular office drives directly from home to a client's headquarters for a two-week engagement. That drive is a temporary-work-location trip, deductible in full, without needing to establish a qualifying home office at all. The same consultant assigned to that client's site for an open-ended, indefinite engagement is on weaker ground, because an indefinite assignment can convert what looked temporary into a new regular work location.
Where this differs from the home-office stacking rule
The home-office conversion, covered separately in home office and mileage deduction, requires a REGULAR and EXCLUSIVE use test to be met first, and then converts home-to-first-stop drives into business miles. The temporary-work-location rule needs no home office at all, it only asks whether the destination is a limited-duration work site relative to the taxpayer's regular place of business. A client can qualify under either rule, both, or neither, and the two should be evaluated separately rather than defaulting to one.
A worked example combining both
A consultant with a qualifying home office and no other regular office drives from home to Client A's site three days a week, all year, an ongoing arrangement, deductible under the home-office rule. The same consultant also drives to a one-time, two-day workshop for Client B across the state. That trip is deductible under the temporary-work-location rule independently, since it is a limited-duration destination regardless of the home-office analysis.
Document the expectation at the start of the engagement, not after the fact
The "realistically expected to last a year or less" test is judged based on what the taxpayer knew or should have known when the assignment began, not how it actually turned out. A note in the client's engagement file at the start, stating the expected duration and scope of a given court assignment or client engagement, is worth far more at examination time than trying to reconstruct that expectation retroactively once an assignment has run longer than planned.
How long can a work location stay "temporary"?
IRS guidance generally treats an assignment realistically expected to last one year or less as temporary. An assignment that turns out to run longer, or that the taxpayer should have expected to run longer, stops qualifying once that expectation changes.
Does this apply to a solo practitioner with no office at all?
A solo practitioner working entirely from home with no qualifying home office has a harder case, since without a regular place of business, the temporary-work-location analysis has less to compare against. Check the home-office exception first in that situation.
Does the temporary-work-location rule apply to out-of-state travel?
Yes, the same analysis applies regardless of distance, though longer trips often shift toward travel-expense rules covering lodging and meals in addition to mileage.
Why professional-services clients underreport this category more than most
An attorney or consultant driving to a client site, a court appearance, or a deposition often treats that trip as simply part of the day's work, mentally, rather than as a specific mileage event worth logging with a destination and date. This category of driving tends to be irregular and calendar-driven rather than a routine daily commute, which paradoxically makes it easier to under-log, since there's no consistent daily habit for capturing it the way a routine drive might get captured.
A calendar-based cross-check helps here more than for most other client types: matching a client's court dates, deposition schedule, or client-meeting calendar against their mileage log for the same period catches gaps that would otherwise go unnoticed, since the calendar entry itself serves as independent corroboration for a trip that might not have been logged contemporaneously.
Either rule needs a trip-level mileage log behind it. Recommend automatic tracking so every temporary-location trip is captured with a destination and date. Try TruMile →
Get the next rate change in your inbox
Mileage rates and tax deadlines, when they change. A few emails a year.