Cost Per Mile Calculator Excel

Montreal Jul 09, 2026

In the realm of digital marketing, cost per mile (CPM) is a crucial metric that helps advertisers measure the cost of displaying their ads to a thousand impressions. To calculate CPM, you divide the cost of the ad by the number of impressions, then multiply by 1000. While this can be done manually, using an Excel calculator can streamline the process and reduce human error. Let's delve into creating a cost per mile calculator in Excel and understanding its components.

Gas Mileage Log and Calculator
Gas Mileage Log and Calculator

Before we dive into the calculator's creation, let's ensure we have a solid understanding of the components involved in CPM calculation. These include the cost of the ad, the number of impressions, and the CPM formula itself.

Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)
Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)

Understanding CPM Calculation

At its core, CPM calculation involves dividing the cost of the ad by the number of impressions, then multiplying the result by 1000. This gives you the cost of reaching 1000 impressions. The formula looks like this:

MPG & Fuel Cost Calculator Spreadsheet | Easily and accurately calculate actual MPG and fuel cost per mile | Microsoft Excel file download
MPG & Fuel Cost Calculator Spreadsheet | Easily and accurately calculate actual MPG and fuel cost per mile | Microsoft Excel file download

CPM = (Cost of Ad / Number of Impressions) * 1000

Cost of Ad

Owner Operator Load Tracker Spreadsheet | Cost Per Mile, Fuel Log, IFTA (Excel/Google Sheets)
Owner Operator Load Tracker Spreadsheet | Cost Per Mile, Fuel Log, IFTA (Excel/Google Sheets)

The cost of the ad is the total amount you've spent on an advertising campaign. This could be a flat rate or a cost-per-click (CPC) amount multiplied by the number of clicks.

For example, if you've spent $500 on an ad campaign and the ad was displayed 50,000 times, the cost of ad for this campaign would be $500.

Number of Impressions

IFTA Calculator for Miles, Gallons, & Fuel Cost Per State
IFTA Calculator for Miles, Gallons, & Fuel Cost Per State

Impressions refer to the number of times an ad is displayed. This could be on a webpage, in an app, or on a social media platform. The more impressions an ad gets, the more people see it.

In the previous example, the number of impressions is 50,000. This means the ad was displayed 50,000 times.

Creating a CPM Calculator in Excel

Excel Route & Delivery Cost Calculator - Fuel, Labor, Cost per Mile, Dashboard
Excel Route & Delivery Cost Calculator - Fuel, Labor, Cost per Mile, Dashboard

Now that we understand the components of CPM calculation, let's create a simple calculator in Excel. This will help us automate the CPM calculation process.

Here's a step-by-step guide to creating the calculator:

141 Free Excel Templates and Spreadsheets | MyExcelOnline
141 Free Excel Templates and Spreadsheets | MyExcelOnline
Excel IFTA Calculator for Miles and Gallons per State
Excel IFTA Calculator for Miles and Gallons per State
How to Calculate Gas Mileage in Excel | Techwalla
How to Calculate Gas Mileage in Excel | Techwalla
Gas Mileage Tracker Excel Template: Track Fuel Costs, MPG, and Expenses. Calculate Gas Cost per Gallon. Mileage Log Sheet. Mileage Work Trip
Gas Mileage Tracker Excel Template: Track Fuel Costs, MPG, and Expenses. Calculate Gas Cost per Gallon. Mileage Log Sheet. Mileage Work Trip
Car Cost Calculator | Total Cost of Ownership Excel & Google Sheets Template
Car Cost Calculator | Total Cost of Ownership Excel & Google Sheets Template
Truck Driver Cost Per Mile Calculator | Owner Operator Expense Tracker Excel Spreadsheet
Truck Driver Cost Per Mile Calculator | Owner Operator Expense Tracker Excel Spreadsheet
Owner Operator Trucking Spreadsheet | IFTA Calculator, Cost Per Mile & Load Tracker | Trucking Business Accounting | Excel + Google Sheets
Owner Operator Trucking Spreadsheet | IFTA Calculator, Cost Per Mile & Load Tracker | Trucking Business Accounting | Excel + Google Sheets
Miles Per Gallon Calculator
Miles Per Gallon Calculator
Free Monthly Budget Excel Spreadsheet
Free Monthly Budget Excel Spreadsheet
Commute Cost Calculator: Wear & Tear = $0.35/mile
Commute Cost Calculator: Wear & Tear = $0.35/mile
Fuel Price Tracker Printable Vehicle Fuel Cost Per Mile Fuel Cost Expense Log
Fuel Price Tracker Printable Vehicle Fuel Cost Per Mile Fuel Cost Expense Log
Mileage Expense Tracker, Mileage Log, Mileage Calculator, Mileage Tracker Spreadsheet, Mileage Tracking, Car Mileage Tracker Google Sheet
Mileage Expense Tracker, Mileage Log, Mileage Calculator, Mileage Tracker Spreadsheet, Mileage Tracking, Car Mileage Tracker Google Sheet
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
Truck Driver Mileage Expense Tracker | Per Diem Calculator, Tax Deductions (Excel)
Truck Driver Mileage Expense Tracker | Per Diem Calculator, Tax Deductions (Excel)
Fuel Cost Log Template Excel & Google Sheets | Mileage Tracker | Gas Expense Log for Car, Truck, Fleet | Travel and Fuel Budget Tracker
Fuel Cost Log Template Excel & Google Sheets | Mileage Tracker | Gas Expense Log for Car, Truck, Fleet | Travel and Fuel Budget Tracker
Trucking Fleet Expense and Savings Tracker Excel Template
Trucking Fleet Expense and Savings Tracker Excel Template
Digital Mileage Tracker for Saving Money
Digital Mileage Tracker for Saving Money
Mileage Tracker, Excel Template, Car Mileage, Personal Finance, Tax Deductibles, Spreadsheet Template, Mileage Spreadsheet, Excel Tracker
Mileage Tracker, Excel Template, Car Mileage, Personal Finance, Tax Deductibles, Spreadsheet Template, Mileage Spreadsheet, Excel Tracker
Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

Setting Up the Worksheet

Open a new Excel worksheet. In the first row, create headers for 'Cost of Ad', 'Number of Impressions', and 'CPM'.

In the second row, create cells for inputting the 'Cost of Ad' and 'Number of Impressions'. Leave the 'CPM' cell blank, as this is where the calculated result will appear.

Creating the Formula

In the 'CPM' cell, enter the following formula: =B2/C2*1000, where B2 is the cell containing the 'Cost of Ad' and C2 is the cell containing the 'Number of Impressions'.

Press Enter. The CPM will now be calculated automatically whenever you change the 'Cost of Ad' or 'Number of Impressions'.

Using an Excel calculator for CPM not only saves time but also ensures accuracy in your calculations. It's a powerful tool that can help you make informed decisions about your advertising spend.

Remember, the key to effective use of any calculator is understanding the underlying formula and the data you're inputting. With a solid grasp of CPM calculation and a well-set-up Excel calculator, you're ready to optimize your advertising campaigns.

So, go ahead, start calculating, and watch your marketing strategies soar!