Cloudflare D1 Pricing Calculator

This calculator turns Cloudflare D1 pricing into a monthly figure for your own usage. Enter rows read, rows written and storage, and it subtracts the included amounts, applies the current rates and shows every line of the bill. The rates are read from Cloudflare’s pricing documentation each time this site is rebuilt, so they follow the official page. Everything is calculated in your browser.

Prices read from Cloudflare's pricing documentation on December 4, 2026.

This is an estimate, not a quote. Taxes, credits, discounts and custom contracts are not included, and the provider's own pricing page always takes precedence.

Examples:
Estimated monthly cost$0.00

    ItemUsageIncludedBillableCost
    Total per month$0.00

    Rates used in this calculation

    How to use the Cloudflare D1 Pricing Calculator

    Type your monthly usage into the fields on the left. There are three: rows read and rows written in millions, and storage in gigabytes. The result updates as you type. The Cloudflare D1 Pricing Calculator shows the total at the top, then a bar that splits the bill by item. Below it, a table lists usage, included amount, billable amount and cost for every line.

    Under the total, a line tells you whether the same usage would fit the Workers Free plan. If you already pay for Workers Paid, tick the box and the subscription is left out. Three example buttons load a small, a medium and a large workload, so you can see how the bill grows. The table at the bottom lists every rate that was used, which makes it easy to compare Cloudflare D1 pricing with the official page.

    Who uses it

    Developers open it when they move a database from another host and want to see the difference. Agencies use the Cloudflare D1 Pricing Calculator to put a number into a proposal. Finance teams use it to check an invoice line by line, and founders use it before they choose a platform. Hobbyists use it to check that a side project stays free.

    How Cloudflare D1 pricing is calculated

    Cloudflare D1 Pricing Calculator

    Cloudflare D1 bills three things: rows read, rows written and storage. A row counts as read when the query has to scan it, not only when it is returned. As a result, a query without an index can read thousands of rows to return one.

    The calculator follows the same steps as the invoice. First it takes your usage. Then it removes anything the plan already includes. Finally it multiplies what is left by the rate. There are no tiers in Cloudflare D1 pricing, so nothing jumps to a higher price band.

    However, daily limits and monthly allowances are not the same thing. Free limits reset every day, while paid allowances cover a whole month. The calculator therefore divides your monthly figure by 30 before it compares it with a daily limit.

    What drives Cloudflare D1 pricing up

    Writes are priced far higher than reads, so a write-heavy application pays mostly for rows written. Reads only matter when queries scan large tables without an index.

    The bar above the table shows which line is the largest, so start there. A line that stays inside its included amount costs nothing, and it is rarely worth optimising.

    In addition, costs do not grow in a straight line at first, because the included amounts absorb the early usage. After that point every extra unit is billed at the same rate. As a result, doubling the usage roughly doubles that line of the bill.

    Ways to lower the bill

    First, add indexes for the columns you filter on. An indexed query reads a handful of rows where a full scan reads the whole table.

    Next, batch your writes and avoid rewriting rows that have not changed. Every insert, update and delete counts as a row written.

    Finally, remember that an index adds a written row whenever its column changes. Keep the indexes you use and drop the rest.

    How current the Cloudflare D1 pricing figures are

    Cloudflare changes prices and included amounts from time to time. For that reason the rates here are not typed in by hand. Several times a day this site is rebuilt, and each time it reads Cloudflare's pricing documentation and picks out every number that the Cloudflare D1 Pricing Calculator needs.

    The note above the calculator says where the prices came from and on which date. If the page cannot be read, or a number looks implausible, the site falls back to the last values it verified and shows that older date. After 45 days a warning appears as well.

    Even so, treat the result as an estimate. Taxes, credits, committed-use discounts and enterprise contracts are not included. For a binding figure, use Cloudflare's own pricing page, which is linked in the note. If your project uses a second product, this related calculator covers it.

    Need a tool like this built for your business?

    We build fast, private web tools and apps that run in the browser. That includes calculators, booking widgets and internal dashboards.

    Talk to us about a web tool

    Frequently Asked Questions

    What counts as a row read?

    Every row the query scans, including rows that are filtered out before the result is returned.

    Does row size matter?

    No. A small row and a large row both count as one row.

    Do read replicas cost extra?

    No. Replicas are free, and you pay for the rows your queries read and write.

    Is the Cloudflare D1 Pricing Calculator free?

    Yes. It is free, with no account and no limit on use.

    Where do the prices come from?

    From Cloudflare's pricing documentation, which this site reads automatically each time it is rebuilt.

    Cloudflare D1 pricing: more questions

    How often are the prices updated?

    Several times a day. The note above the calculator shows the date.

    Is the result exact?

    No. It is an estimate, and taxes, credits and custom contracts are not included.

    Are my numbers stored?

    No. The calculation runs in your browser, and nothing is sent to a server.

    Which currency is used?

    US dollars, the currency of Cloudflare's price list.

    Does it work on a phone?

    Yes. It works in any modern browser on a phone, a tablet or a computer.

    A PROJECT STARTS WITH A CONVERSATION

    Tell us what
    you have in mind.

    Share the outcome you need, your existing systems and any constraints. You don't need a technical specification to start.

    If the form does not work, email us directly at contact@mecanik.dev

    Direct engineering support

    Direct technical collaboration.
    A clear scope and accountable delivery.