One-time setup
Three steps, once, on this computer — then copy it to your phone:
- Create your Google Sheet and paste in the script (use the guide button below).
- Paste the Web App URL into the box below and tap Test connection.
- Tap Save, then open ☰ → Copy setup to another device to send everything (including your key) to your phone.
Easiest: set up on a computer first (the Google part needs a desktop browser), then copy it to this phone:
- On a computer, open this app and finish setup.
- There, tap ☰ → Copy setup to another device → Copy setup link.
- Send the link to your phone, paste it below, and tap Import.
On the other device: ☰ → Copy setup to another device → Copy setup link, send it here, paste it above, and tap Import.
Hides the “Commuting” option, because a home office means no commute. You can change this anytime in Settings.
Must be an https://script.google.com/…/exec URL from your own Sheet.
—
Auto-generated and stored only on this device. It authenticates this app to your Sheet.
Your name, vehicle, URL, secret, and any unsynced trips are stored only in this browser (localStorage). Nothing is sent to any server except your own Google Sheet.
Odometer
Classification & purpose
Sync status
Each saved trip posts directly to your personal Google Sheet. Offline entries are queued on this device and retried automatically.
Not tax advice — keep your own records and consult your tax advisor.
Menu
Mileage Tracker · private — saves to your own Google Sheet
Vehicles & businesses
Add more than one to get a vehicle picker when logging. Each trip is tagged with its vehicle, so one Sheet covers all your cars.
Add more than one to get a business picker when logging — handy for a side business or consulting work.
IRS Schedule C info
Settings and figures that feed your Schedule C vehicle section.
Home office
Flagging a home office matters because, with one, drives from home to your work locations count as deductible business miles instead of nondeductible commuting.
When on, the “Commuting” classification is hidden, because a home office means no commute. Changing this only affects future trips — past entries keep their classification.
Annual odometer
Record your odometer at the start and end of the tax year; the difference is your total miles for the year (and your business-use % if you use the actual-expense method). The IRS asks for total miles even under the standard mileage rate. Saved to the Odometer tab.
Actual is best; a reasonable estimate from service records is acceptable. Enter just one now (e.g. Jan 1) and the other later if you like.
Not tax advice. This tool helps you keep contemporaneous records; it doesn’t determine what’s deductible or which method to use. Confirm the standard-mileage vs. actual-expense choice and your recordkeeping with your own tax advisor.
IRS guidance (2026)
The 2026 business standard mileage rate is 72.5¢ per mile. Useful IRS references (open in a new tab):
2026 standard mileage rate — news release Standard mileage rates (all years) Topic 510 — Business use of car Pub. 463 — Travel, Gift & Car Expenses Schedule C instructions (Part IV — vehicle)Not tax advice. Links are provided for convenience; confirm anything tax-related with your own advisor.
User guide & FAQ
A fast, private mileage logger. Trips go straight to your own Google Sheet — no account, no fees, and it works offline.
Install on your iPhone
- Open business-mileage-log.pages.dev in Safari (this matters — Add to Home Screen and voice dictation need Safari).
- Tap the Share icon → Add to Home Screen → Add.
- Launch it from the new icon — it runs full-screen and works with no signal.
- Can’t find the icon? Swipe down on the Home Screen and search “Mileage”, or look in the App Library.
One-time setup (your Google Sheet)
On a computer, open Menu ▸ Set up Google Sheet (computer) and follow the steps: create a Sheet, paste the script (your key is filled in), deploy it as a Web app, and paste the resulting /exec URL into Setup. To copy your settings to your phone, use Menu ▸ Copy setup to another device and scan the code with your Camera.
Log a trip
- Enter the start and end odometer (tenths of a mile are fine). Tap Start = last trip’s end to chain trips quickly.
- Pick a classification, and for business add a purpose — tap a chip, dictate, or type (a purpose is required for business trips, per IRS §274(d)).
- Tap Save trip. Miles are calculated for you.
Business = deductible work driving. Commuting = home ↔ your regular office (not deductible, but the IRS wants the yearly total). Personal = everything else.
Schedule C info
Under Menu ▸ Schedule C info: set Home office (if your home is your principal place of business, drives from home to work sites are business miles, not commuting), and record your annual odometer on Jan 1 and Dec 31 for each tax year — the difference is your total miles (and business-use % for the actual-expense method). Tap Save.
More than one vehicle or business
Add them under Menu ▸ Vehicles & businesses. A picker appears on the logging screen only when you have more than one, so single-vehicle logging stays one tap.
Offline & syncing
No signal? Entries are saved on your phone and sync automatically when you’re back online. You can also tap Sync now on the logging screen.
FAQ
Is my data private?
How secure is my data?
Does it cost anything?
Why Safari and not Chrome on iPhone?
My phone and computer show different setups — why?
Do I have to log personal trips?
I made a mistake — can I fix it?
“Could not reach the script” when I test the connection.
I saw a “Google hasn’t verified this app” warning.
How do I update the script later?
How do I total my miles at year end?
Not tax advice. This app helps you keep contemporaneous records; confirm your method and recordkeeping with your own tax advisor.
Google Sheet connection
Advanced — you set this up once. You normally don’t need to change it again.
—Set up your Google Sheet
Do this once, on a computer (the Apps Script editor needs a desktop browser).
- Go to sheets.new and name the sheet (e.g. “Mileage Log”).
- Extensions ▸ Apps Script. Rename the project to Mileage Tracker.
- Delete the sample code, tap Copy script below, paste it in, and Save.
- Deploy ▸ New deployment → gear ⚙ → Web app. Set Description: “Mileage Tracker”, Execute as: Me, Who has access: Anyone → Deploy → approve (normal consent, no warning).
- Copy the Web app URL (the long one ending in /exec — not the “Deployment ID”) and paste it into the Webhook URL box on the Setup screen.
No editing needed — your shared key is already inserted.
Use the Web app URL (it ends in /exec) — not the “Deployment ID”.
Already set up and just re-pasting an updated script? Skip steps 1–2 and the URL step. After you Save, redeploy with Deploy ▸ Manage deployments ▸ ✏️ Edit ▸ Version: New version ▸ Deploy — that keeps your existing /exec URL, so nothing else changes.