Embed the driving cost calculator on your site
Give your readers, customers or staff a working calculator for what a journey really costs: fuel or electricity, servicing, tyres and tolls. Free to use, no account needed, one snippet to paste.
1. Copy the snippet
Paste this where you want the calculator to appear. Replace YOUR-SITE-NAME with a short name for your site (letters, numbers, dots and hyphens).
<iframe src="https://www.truetravelcost.com/?embed=1&partner=YOUR-SITE-NAME"
title="TrueTravelCost driving cost calculator"
style="width:100%;border:0;min-height:640px" scrolling="no" loading="lazy"></iframe>
<script src="https://www.truetravelcost.com/js/embed-host.js" async></script>
<p style="font-size:13px">Calculator by <a href="https://www.truetravelcost.com/">TrueTravelCost</a></p>
The script line makes the calculator resize itself to fit its content. It is optional; without it the frame keeps the minimum height above. Please keep the attribution link under the calculator.
2. Options
| Parameter | What it does |
|---|---|
embed=1 | Required. Switches on the compact embed layout (no site header, footer or about text). |
partner=name | Your site name. Used only to count how often the calculator is used, so we can keep it maintained. |
theme=dark | Optional. Uses the dark colour scheme. |
Live preview
This is exactly what your visitors would see.
Good to know
- All figures are estimates based on the numbers entered and public cost data. The methodology page explains where each figure comes from.
- The calculator runs on TrueTravelCost servers, so you do not host or maintain anything, and it stays up to date.
- The embedded calculator uses site analytics. If your site has a cookie consent banner, load the frame only after consent where your rules require it.
- Need a version in your own branding, or the calculation as an API? Get in touch.