Cloud Database & Sharding Cost Estimator
Check Cloudflare D1 free-plan thresholds using published limits, or build an editable PostgreSQL/MySQL sharding, replica and storage scenario.
Model your scenario
Calculations update instantly. Your entered values stay in your browser unless you choose to share a scenario URL. Rates and assumptions must be checked before purchasing.
Calculated results
Enter your assumptions above.
Breakdown
Comparison / spending distribution
Limit and tier guidance
Provider tier guidance appears after calculation.
How this estimate works
Cloudflare D1 documents a Workers Free allowance of five million rows read daily, 100,000 rows written daily, five gigabytes of combined storage and ten databases. Hitting a free-plan usage limit can stop queries or writes until limits reset or the plan changes. These are not soft thresholds that simply begin billing.
For paid D1 usage, the estimator separately accounts for excess paid-tier row allowances and storage; it leaves Workers/hosting base pricing as an explicit editable assumption. The stored amount includes an assumed percentage for indexes. Actual read counts come from query metrics, not from the number of web requests.
For PostgreSQL/MySQL, change to custom mode and enter the prices from the actual hosting provider. A self-hosted engine does not automatically have a free tier; replicas, storage, backup, network egress and support can each add cost.
Growth note: The month-to-limit estimate only compounds storage at the selected growth rate; it does not predict real traffic, compression or lifecycle policy effects.
Frequently asked questions
When will my Cloudflare D1 database exceed the free plan?
Check daily rows read against 5 million, rows written against 100,000, total account storage against 5GB and database count against 10. These are free-plan constraints, not invoices.
Does one SQL SELECT equal one D1 read row?
No. D1 meters rows read or scanned by the query, which can be greater than the number of rows returned. Indexes matter.
Can you calculate a universal PostgreSQL or MySQL free tier?
No. PostgreSQL and MySQL are database engines. Free plans depend on the managed host, compute choices, included storage and region.
Does adding shards always reduce cost?
No. Shards and replicas add compute and operational overhead. Actual performance and metered usage depend on data distribution, replication and query design.
Official sources and pricing checks
Last methodological review: November 10, 2026. Vendor prices and product limits may change. This tool is not a bill, financial recommendation or guarantee of free-tier eligibility.
Other tools from this hub
AI Token API Budget Optimizer
Compare text-token costs across OpenAI, Anthropic and Gemini; budget for image generation separately.
Open calculator ↗Cloud Database & Sharding Estimator
Check real D1 allowances and create custom PostgreSQL or MySQL infrastructure scenarios.
Open calculator ↗Remote Work Compliance Stack
Forecast identity, endpoint, security training and compliance licensing across your workforce.
Open calculator ↗Cloud Data Egress Estimator
Model transfer, cross-region networking, CDN hit ratio and data-request charges.
Open calculator ↗SaaS License Waste Calculator
Model unused seats, license allocation and potential procurement savings.
Open calculator ↗Learn. Calculate. Protect.
Move from a cloud cost estimate to privacy reporting, team training, AI compliance workflows and practical digital-safety tools.
Compare the leading cloud providers
Use an editable workload model to review AWS, Azure, Google Cloud and Oracle infrastructure costs side by side.