> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taxhomebase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mileage

> Log deductible miles with IRS standard rates, purpose tracking, and auto-categorization.

The Mileage page tracks your work-related driving for tax deductions. The IRS requires contemporaneous (at-the-time) mileage logs to substantiate vehicle expense deductions — TaxHomeBase helps you build that record.

<Frame caption="Log trips with purpose tracking, IRS rate calculations, and deductibility badges.">
  <img src="https://mintcdn.com/stipendguard/rYTODjwsgR5TPzB9/images/guides/mileage.png?fit=max&auto=format&n=rYTODjwsgR5TPzB9&q=85&s=e002f9bb8e00d9be9c109ff7d1b325b3" alt="Mileage page showing trip cards with purpose badges, summary card with total miles and estimated deduction" style={{ maxWidth: '300px' }} width="786" height="1680" data-path="images/guides/mileage.png" />
</Frame>

## Logging a Trip

Tap the **+** button to open the mileage form. Fields:

| Field           | Required | Description                         |
| --------------- | -------- | ----------------------------------- |
| **Date**        | Yes      | Date of the trip                    |
| **Miles**       | Yes      | Distance driven (whole integer)     |
| **Purpose**     | Yes      | Trip purpose category               |
| **Origin**      | No       | Starting point (max 200 chars)      |
| **Destination** | No       | Ending point (max 200 chars)        |
| **Assignment**  | No       | Link to a specific assignment       |
| **Notes**       | No       | Additional context (max 1000 chars) |

## Trip Purposes

Each trip gets a purpose that determines its tax deductibility:

| Purpose          | Deductible | Description                                      |
| ---------------- | ---------- | ------------------------------------------------ |
| `tax_home_visit` | Yes        | Return trips to your tax home                    |
| `work_travel`    | Yes        | Travel between facilities or to/from assignments |
| `licensing`      | Yes        | Travel to testing centers, licensing offices     |
| `personal`       | No         | Non-work-related driving                         |
| `other`          | Yes        | Other business-related travel                    |

<Info>
  The `personal` purpose is for tracking total miles on your vehicle (useful for calculating business-use percentage) but is excluded from deduction calculations.
</Info>

## IRS Standard Mileage Rates

TaxHomeBase uses the IRS standard mileage rate for deduction calculations:

| Year | Rate per Mile |
| ---- | ------------- |
| 2024 | \$0.67        |
| 2025 | \$0.70        |
| 2026 | \$0.70        |

Your deduction is calculated as: `deductible miles x rate per mile`.

## Summary Card

<Frame caption="The mileage form captures date, miles, purpose, origin, destination, and optional assignment link.">
  <img src="https://mintcdn.com/stipendguard/rYTODjwsgR5TPzB9/images/guides/mileage-form.png?fit=max&auto=format&n=rYTODjwsgR5TPzB9&q=85&s=5d4c545e9a05b96dfd08b93025e73750" alt="Mileage form showing fields for date, miles, purpose, origin, destination, and assignment" style={{ maxWidth: '300px' }} width="750" height="1680" data-path="images/guides/mileage-form.png" />
</Frame>

The summary at the top of the page shows:

* **Total miles** — All miles logged for the year
* **Estimated deduction** — Deductible miles x IRS rate
* **IRS rate** — Current year's standard mileage rate

## Deductibility Badges

Each trip card shows whether the trip is deductible based on its purpose. The mileage summary breaks down deductible vs. non-deductible miles and trips by purpose.

## Actions on Trip Cards

* **Expand** — View origin, destination, notes, and linked assignment
* **Edit** — Modify any field
* **Delete** — Soft delete with 5-second undo toast
* **Duplicate** — Open a pre-filled create form (handy for recurring routes)

## Search and Filter

A client-side search bar filters trips by purpose, origin, destination, and notes. The year picker filters trips by year.

## Integration with Other Features

Mileage data flows into several other parts of TaxHomeBase:

* **Tax Estimate** — Mileage deduction included in itemized total (1099) or tracked for state deductions (W-2)
* **Assignment Profitability** — Linked mileage counted in per-assignment expenses
* **Tax Home Analysis** — Visit mileage (tax\_home\_visit purpose) counted in tax home maintenance costs
* **Export** — Mileage summary row in PDF, dedicated "Mileage Log (CSV)" export option
