Can I deduct mileage?
Mileage is an allowable deduction for business owners. You can also claim mileage for medical or charitable purposes, or as a moving expense that was related to your job.
However, you cannot claim mileage for commuting between your home and your main workplace.
As a business owner, you can either take the standard mileage rate or the actual cost method, which tracks what you paid for gas and maintenance.
To use the standard mileage rate, you must keep a log of each trip with miles driven during the first year your vehicle is used for business. After that, you can either go with standard mileage or actual cost (unless you lease, in which case you must stick with standard mileage for the duration of the lease).