← Back to all articles
·By

How to track Cloudflare costs per domain

Split Cloudflare costs by domain, reconcile usage with your invoice, and avoid double-counting receipts. Follow a worked $42.09 Argo bill and a spreadsheet method.

Cloudflare billingArgo Smart RoutingCost allocationSaaS expenses

Start with the Cloudflare invoice. Assign each charge to a domain when the invoice or usage data identifies one. Keep shared charges on a separate row. If you already recorded the invoice total, use the receipt to mark it paid. If you also record the receipt as an expense, you count the bill twice.

That sounds easy until the same amount turns up in three places. You can see a charge in Billable Usage, a line for it on the invoice, and a receipt for the payment. Each answers a different question. To compare SaaS product costs, record each expense once. Keep enough detail to explain which product incurred it.

A Cloudflare Argo invoice in RealMRR's test suite makes a good example. It has $31.60 in metered usage, $5.00 for the next period and $5.49 in tax. The final bill is $42.09. The test also gives the importer a receipt for $42.09 and another record of the usage. Those extra records let the test catch a duplicate expense.

Where to find Cloudflare costs by domain

Open the Cloudflare dashboard and select the account that owns the domains you want to check.

  1. Go to Manage Account → Billing → Invoices and documents.
  2. Find the bill and use the download icon next to its invoice number.
  3. Write down the invoice number, currency and date.

If you run separate Cloudflare accounts, check the account name before you copy any amounts. The same service can appear on more than one account. Cloudflare's invoice instructions

Start with the invoice for plan fees, subscriptions and taxes. Cloudflare bills domain plans per domain, although it can group several domains on one invoice line. If the line shows three domains at the same unit price, record one unit charge for each domain. If you have an annual plan alongside monthly add-ons, check each line's service dates. The account can have separate monthly and annual billing cycles. Cloudflare's guide to billing and invoice line items

For usage, open Manage Account → Billing → Billable Usage and choose the billing period. Cloudflare documents this dashboard for pay-as-you-go accounts with Billing read access. It shows charges from usage overages and lets you filter by Cloudflare service, such as R2 or Workers. Here, product means a Cloudflare service. Your own SaaS product might use several of those services. Cloudflare's Billable Usage dashboard guide

Use a domain or zone label when the underlying detail provides one. Keep a service-wide total separate when you only have a service name.

If you run both app.example.com and docs.example.com under one billed domain, a charge labeled example.com gives you a domain total. To split that total between two apps, you need finer usage data or an allocation rule you can explain. Cloudflare's billing policy treats subdomains as part of the billed domain. Cloudflare's billing policy

Why one invoice can cover two periods

Cloudflare can send one invoice with usage from the period that just ended and fixed fees for the period about to start. The service dates next to each charge tell you which period it covers. The issue date tells you when Cloudflare billed you. The payment date belongs to the receipt or bank record. Keep all three when the timing matters. Cloudflare's billing cycle and charge types

Say a bill arrives on July 29. The latest metered charges may belong to the period that just closed, while the fixed charge prepays the next one. A cash tracker would use the date the money left the account. For an internal view of what it cost to run a product during July, the service dates help you see which part of the bill relates to July. Pick a convention for your report and record it in the sheet so you can apply it again next month.

Match Cloudflare's billing period before you compare a daily usage chart with an invoice. A date filter for the first through the last day of July may cut across two Cloudflare cycles. The wrong period can make a valid invoice look like it has missing charges. Check the dates before you search for a bad spreadsheet formula. Cloudflare's billing period filter

The $42.09 Argo bill, line by line

RealMRR's connector test uses anonymized figures from a public Cloudflare invoice. The test makes the API return several records for that bill. This recreates the kinds of overlap an importer has to handle, without relying on a live customer account or a current Argo price list. The same example appears in the RealMRR launch notes.

Argo test invoice breakdown. $31.60 in usage, $5.00 fixed charge and $5.49 tax total $42.09. The receipt confirms payment of that bill.
The anonymized invoice used in the RealMRR connector test.
Record Amount What it tells you
Usage for the previous period $31.60 The test has a zone ID, so this amount can go to the SaaS product mapped to that zone.
Fixed charge for the next period $5.00 The test has a subscription charge with no zone ID.
Tax on the invoice $5.49 This is part of the amount due on this invoice.
Invoice total $42.09 The combined amount on the bill.
Receipt $42.09 Payment of the same bill.

The first three rows add up to $42.09. If you enter the invoice and the receipt as expenses, your sheet shows $84.18. If you enter the invoice total and the metered usage, it shows $73.69. The second total might look more believable. It can also make the domain with the most detailed usage data look like the most expensive one.

You can record the bill as a single $42.09 expense. That is enough for a total-spend report. You can also record its parts and keep the invoice total in a separate field to check the sum. With the parts, the $31.60 usage has its own line and can go to the right product. Keep the $5.00 and $5.49 in view while you look for enough detail to assign them.

Some billing histories show a charge for usage already described by a feed of daily usage. In this fixture, billing history shows $31.60 and the metered row also shows $31.60. Use the daily row when you need the zone breakdown. Keep the history entry as a source reference for the amount. The invoice and receipt can still help you reconcile the same charge later.

How to split a Cloudflare bill in a spreadsheet

A small sheet is enough if you download a few invoices each month. Give each expense row an invoice number, currency, service period, description and amount. Add Domain, Your product and How assigned columns. The last column can say invoice line, zone usage, shared or estimated split. When you revisit the sheet three months later, that note will explain why a row went to a particular product.

Keep a separate invoice summary with one entry per invoice, its total and payment status. If several people add receipts or bills, look up each invoice by its Cloudflare account and invoice number. A receipt can update the invoice status and payment date. A distinct payment or refund deserves its own record for cash tracking, with a reference to the bill it affects.

1. Copy the charges you can trace

Start with charges that name a domain on the invoice. For usage, the useful detail is the zone ID or zone name when Cloudflare supplies it. Match the zone to your own product list. A mapping might say helpdesk.example belongs to Helpdesk and reports.example belongs to Reports. Use the same mapping next month unless the domain changes hands or starts serving another product.

If a line groups several domains at a stated unit price, use the quantity and unit price to check the split. If the invoice groups multiple items without enough detail to price each one, keep that amount together. A single bill can contain charges you can trace and charges you still need to investigate.

2. Give shared charges somewhere to go

Use a Shared Cloudflare or Unassigned row for charges that belong to the account as a whole. Say two apps use the same paid service and the bill only shows its total. Leave that cost at the workspace level so you can see what the business spent. List each app's direct costs under its own name.

If you need to estimate each app's share, choose a measure that describes how it used the service. For a bill driven by requests, each app's measured share of requests can be a starting point. Save the measure, the date range and any gaps in the data. A split based on requests is an estimate of the bill's distribution. If the provider later supplies billed amounts by zone, you can replace that estimate with the actual split.

3. Check the sum against the invoice

Sum the lines for one invoice in its original currency. Compare that sum with the invoice total and write down the difference. If you copied the usage and fixed charges from the Argo example, the sheet would add up to $36.60. The remaining $5.49 is the tax line on the bill.

If the difference persists, check for missed credits, mismatched billing periods or mixed currencies. Use the original currency to reconcile the invoice. Then convert the amounts to your reporting currency if you need to. If you track a credit against an invoice, record its sign and reference so you can see what reduced the bill. When you only have a total, leave the missing detail blank and record the total once.

4. Keep the allocation next to your product figures

If a product's Cloudflare costs include a share of common costs, label that share in your margin report. One product might have $31.60 in Argo usage you can trace to its zone. The account still carries fixed charges and tax. Put the product figure and the account total in the same report so the unassigned bill stays in view.

Check the other providers the product uses, too. A Cloudflare zone might have a clear owner while the Vercel project, payment account or AI usage still needs mapping. The same habit works across providers. Record what you can trace, then leave an explicit place for the rest. How to split shared SaaS costs across products

What RealMRR imports from Cloudflare

In the founder workspace, open Finances and find Cloudflare in the provider list. The connection asks for a Cloudflare API token with Billing Read and Account Settings Read for the account you want to track. The setup instructions show where to create a token and where to find the account ID. After the sync, open the Cloudflare connection's Product mapping controls to assign rows with zone detail to your products. Keep rows labeled Account-level amounts unassigned if they cover several products. Cloudflare's API token guide

When Cloudflare supplies usage and subscription details

The connector can import billed usage with zone IDs and use itemized subscription charges for the fixed portion. In the test, it stores $31.60 with the zone and $5.00 without a zone. That adds up to $36.60. The fixture contains the $5.49 tax only as part of the full invoice amount. The itemized import has no separate tax row for that amount. If you need every charge in your report, compare the expense view with the actual invoice.

That $5.49 difference is easy to miss if you only check one view. The detailed import gives you enough information to assign the metered part to the right SaaS product. The invoice gives you the amount due for the entire bill. Keep the invoice for reconciliation even when the import gives you the domain detail you wanted.

When the invoice total is the usable record

Some Cloudflare accounts or billing periods return an invoice total without the subscription detail RealMRR uses to combine fixed and metered charges. In the fixture, when the connector gets that kind of response, it stores one $42.09 expense for the invoice. The tax is already in that number. The account total also stays intact when Cloudflare's API does not offer billable usage coverage and there is a usable invoice total.

The receipt stays out of the expense sum. So do the overlapping component charges for the period covered by the full invoice. The resulting row may have no domain ID. If you can identify the owner from the invoice, you can make that assignment in your records. If the bill covers several products and gives you no split, keep it at the account level until you have better evidence.

What happens when the data changes after a sync

A billing tool can get the numbers right on the first import and still get them wrong on the second. Suppose the connector starts with a $42.09 invoice total. On the next run, the API supplies the $31.60 zone usage and $5.00 fixed charge. If the connector adds those new rows alongside the old total, tracked spend becomes $78.69. A further sync can look fine by itself and still leave the old duplicate in the database.

RealMRR's test checks the records after each sync. It starts with the full invoice, switches to the itemized rows, runs the sync again, then switches back. The test checks that RealMRR replaces the old rows when the source changes. Another case gives the importer a valid first page of billing history and an error on the next page. The failed sync leaves the last successfully imported records in place.

The same problem can show up in a spreadsheet if you append a fresh CSV each time. If a later export gives you the detail, replace the monthly total in the expense sheet with its parts. Keep the total in the invoice summary for comparison. If you switch back to the invoice amount, take its component rows out of the expense sum.

For an API import, keep the account and invoice references where they exist. Cloudflare's billing history includes fields such as id, invoice_id, external_invoice_id, type and action. The same invoice can have more than one history row. Equal amounts on the same date are weak evidence by themselves. Two domains on the same plan can legitimately cost the same amount. Cloudflare's account billing history API

Common questions

Can I get the exact Cloudflare cost for every domain?

You can get an exact amount for charges that Cloudflare identifies with a domain or zone. If a charge covers several domains and the provider supplies only a total, that source cannot tell you each domain's share. Look for itemized invoice lines or more detailed usage first. If you need a breakdown for planning, record an estimated split and keep the original total available for comparison.

Why is Billable Usage lower than the invoice?

Cloudflare's Billable Usage dashboard shows usage overages. Fixed plan fees are outside that view. A bill can also include subscriptions and tax. Match the dashboard's billing period to the dates on the usage lines and compare those amounts first. Then reconcile the rest of the invoice using its fixed charges and tax. Cloudflare's Billable Usage guide

What should I check when Cloudflare shows up twice?

Find the invoice number and follow it through the expense rows, receipt and bank transaction. If two records describe the same expense, keep one amount in the expense sum. Use the receipt to confirm payment. If several usage rows share a date, compare the service, account and zone before you delete a row.

If you want to compare Cloudflare costs with revenue and other bills by product, see how RealMRR tracks SaaS profit. Start with one Cloudflare account and one closed billing period. Check the imported amounts against the bill. Then assign each charge you can trace to its product.

RealMRR publishes guides on SaaS profit, payment integrations, cloud costs, and bookkeeping workflows.

Built for indie founders

Know your real profit today.

Connect your payment gateway and cloud bills to get verified profit rankings, automated bookkeeping, and zero guesswork.