Last updated November 16, 2026
LayoutMath uses browser local storage for two display preferences you choose on the site, security cookies from Cloudflare when bot protection is active, and third-party advertising cookies from Google AdSense to serve and measure advertisements. Calculator inputs and results run entirely in your browser and are never stored in cookies or sent to our server.
What cookies and local storage are
A cookie is a small text file a website or third-party service asks your browser to keep, which your browser sends back on later requests. Local storage is similar but stays in your browser on your device and is not sent to the server with each request. Both can remember a setting or, in advertising, recognize a browser across visits.
What LayoutMath stores in local storage
When you switch units or theme using the buttons in the header, LayoutMath saves those two choices in your browser's local storage so the next page opens with your preferred units and theme. They stay on your device and cannot identify you.
| Name | Where | What it holds | Why | How long |
|---|---|---|---|---|
bh-prefs | Local storage | Your unit system and currency code (USD, GBP, or EUR) | So the next page opens in the units you chose | Until you clear site data |
bh-theme | Local storage | “light” or “dark” | So the next page opens in the theme you chose | Until you clear site data |
Cookies from Cloudflare
Cloudflare delivers the site and protects it from automated abuse. Its documentation lists strictly necessary security cookies it can set when bot protection or security challenges are triggered.
| Name | When it appears | Purpose | Lifetime |
|---|---|---|---|
__cf_bm | Only if bot protection is switched on for the site | Helps tell people from automated traffic | 30 minutes of inactivity |
cf_clearance | Only after a visitor is shown and passes a security challenge | Remembers that the challenge was passed | Set by Cloudflare |
These cookies are used for security and are not used for advertising or to build a profile of you. See Cloudflare's cookie documentation.
Analytics
The site uses Ahrefs Analytics to count page views and see which pages and sources bring visitors. Ahrefs states that its analytics does not use cookies or persistent identifiers and does not follow visitors across sites, days or devices.
Advertising and Google AdSense Cookies
LayoutMath participates in Google AdSense (`ca-pub-3287382925183208`) to support free access to our calculators and guides. Third-party vendors, including Google, use cookies (such as the DoubleClick DART cookie and `__gads` / `__gpi` cookies) to serve ads based on a user's prior visits to this website or other websites on the internet, to limit how often an ad is shown, and to measure ad effectiveness.
- Google's use of advertising cookies enables it and its partners to serve ads to you based on your visit to LayoutMath and/or other sites on the internet.
- You may opt out of personalized advertising at any time by visiting Google Ads Settings or www.aboutads.info/choices.
- To learn more about how Google uses data when you use partner sites, see How Google uses information from sites or apps that use our services.
Consent in the EEA, UK and Switzerland
Visitors located in the European Economic Area (EEA), the United Kingdom and Switzerland are shown a consent management prompt before personalized advertising cookies are stored or read. Calculator inputs and outputs are never shared with advertisers.
How to clear or block cookies and site data
Every browser lets you inspect, delete and block cookies and local storage data. Clearing site data for LayoutMath removes bh-prefs, bh-theme and any stored cookies. Instructions for common browsers:
Questions
Questions about this cookie policy go to hello@layoutmath.com. See also our privacy policy and terms of use.