This calculator helps you plan and track a differential privacy (DP) noise budget across a sequence of queries. Given a total privacy budget , a number of allowed queries, and a query sensitivity, it estimates the per-query privacy cost and the noise scale required under either the Laplace or Gaussian mechanism. It is aimed at data scientists, privacy engineers, and researchers who need a quick way to reason about how much noise to add per query and how much privacy budget remains as analyses progress.
The tool assumes a simple scenario where the total budget is split evenly across all planned queries. It is not a full privacy accountant and should be used for planning and intuition rather than as the sole basis for production-grade privacy guarantees.
Differential privacy controls how much the output of an analysis can change when a single individual’s data is modified. The parameter (epsilon) quantifies this guarantee. Intuitively, smaller means stronger privacy but also more noise and lower accuracy. Larger relaxes privacy in exchange for higher accuracy.
A privacy budget is the total you are willing to spend for a project or dataset. Each query that is answered with a DP mechanism consumes some of this budget. When the budget is exhausted, you should stop releasing additional results or reset the dataset and plan a new budget.
Some mechanisms, especially the Gaussian mechanism, provide (, )-differential privacy. The parameter is a small failure probability: with probability at most , the guarantee of pure -DP may not hold. In practice, is often set to something much smaller than 1 / N, where N is the dataset size (for example, or ).
Sensitivity measures how much the result of a query can change when one individual’s data is added, removed, or modified. Formally, it is the maximum difference in the query output over all neighboring datasets that differ in one individual.
The calculator assumes that the total privacy budget is divided equally across the allowed number of queries . The per-query budget is
where:
For the Laplace mechanism, the noise added to a query output comes from a Laplace distribution with scale parameter . For a query with sensitivity and per-query epsilon , the scale is
Larger sensitivity or smaller per-query epsilon leads to a larger scale , meaning more noise is added to the answer.
For the Gaussian mechanism, the calculator uses a standard analytic bound for (, )-DP. The noise added is Gaussian with standard deviation given approximately by
Here, must be a small positive number, and the formula is most appropriate when is very small (e.g., or smaller) and is not extremely large.
1e-5 or smaller. As a rule of thumb, should be less than 1 / N, where N is the dataset size, and often much smaller for sensitive data.
The calculator reports several useful quantities derived from your inputs:
If the remaining budget is close to zero or negative, your planned number of queries is not compatible with the chosen total . You can address this by reducing the number of queries, accepting more noise (smaller per-query epsilon), or increasing the total privacy budget after a careful policy review.
Consider an analytics project with the following plan:
The per-query epsilon is
For the Laplace mechanism, the noise scale is
This means each query result will have Laplace noise with scale 100 added. If your counts are typically on the order of a few thousand, this may be acceptable; if they are much smaller, you may find the noise too large and need to reconsider your budget or number of queries.
Now suppose you have already used 40 queries. Under the equal allocation assumption, you have consumed
of your privacy budget, leaving remaining. The calculator will display this remaining budget, helping you decide whether you can afford additional queries at the same noise level.
The table below summarizes some high-level differences between the Laplace and Gaussian mechanisms as used in this calculator.
| Aspect | Laplace Mechanism | Gaussian Mechanism |
|---|---|---|
| Privacy type | Pure -DP | (, )-DP |
| Noise distribution | Laplace(0, ) with scale | Normal(0, ) with |
| Typical use cases | Simple counts and numeric queries where pure DP is desired | Mechanisms built on advanced accountants, DP-SGD, or when Gaussian noise is preferred |
| Parameters required | , | , , |
| Tail behavior | Heavier tails than Gaussian; occasionally larger deviations | Lighter tails; deviations more concentrated near the mean |
| Compatibility with this tool | Direct application of the standard Laplace DP formula | Uses a standard analytic bound; not a full Gaussian DP accountant |
This calculator is intentionally simple and makes several assumptions that you should keep in mind:
There is no universally correct choice of and , but some broad guidelines can prevent extreme misconfigurations:
1 / N, where N is your dataset size. For large datasets, typical choices range from to depending on risk tolerance and applicable guidelines.
This differential privacy noise budget calculator offers a simple way to connect abstract privacy parameters (, , and sensitivity) to concrete per-query noise scales for Laplace and Gaussian mechanisms. By assuming equal per-query allocation and basic composition, it helps you reason about how many queries your budget can support and how noisy each result will be. However, because it omits advanced composition, detailed accounting, and dataset-specific constraints, its outputs should be treated as planning guidance rather than definitive guarantees.