Face masks became an everyday supply item during the COVID-19 pandemic, and buying the right quantity means more than guessing how many days a mask rule might last. A reusable cloth mask, a disposable surgical mask and a respirator with replaceable filters all have different usable lifetimes, so they produce very different shopping lists for the same period.
The coronavirus mask calculator estimates how many masks or filters a period of mask use requires from three inputs: hours worn per day, the length of the period in days, and the usable hours of one mask or filter. It divides total wear time by that usable life, rounds up to a whole unit, then multiplies by the price you enter. Cloth masks are capped at five in rotation; filter-based masks add the one-time mask price to the filter cost.
What formula does the mask calculator use?
The calculation starts with the total number of hours you expect to spend wearing a mask, then divides that by the number of hours one unit stays usable:
Here is the average hours of wear per day, is the number of days you need coverage, and is the usable hours per mask or filter. The ceiling brackets mean a fractional result is rounded up, because you cannot buy part of a mask. For cloth masks the tool additionally applies a five-mask rotation cap, .
The quantity is then turned into a cost using the prices you enter:
For a mask with a replaceable filter, the calculator reports the filter cost separately and adds the price of the mask once:
The usable hours and protection ranges come from the calculator's own mask dataset:
| Mask type | Usable hours per unit | Protection range in data | What the calculator counts |
|---|---|---|---|
| Cloth mask | 8 | 0–20 percent | Masks, capped at five |
| Surgical mask | 2 | No numeric rating | Masks |
| N95/N99 respirator | 16 | 95–99 percent | Masks |
| Mask with N95 filter | 56 | 95 percent | Filters plus one mask |
| Mask with N99 filter | 56 | 99 percent | Filters plus one mask |
| Other FFRs | 56 | 99 percent | Filters plus one mask |
A zero protection rating in the data means the source provides no numeric range for that option, not that the mask offers nothing: the source text says surgical masks filter only some viral matter but do block droplets from sneezing or coughing.
Worked example: two weeks of N95/N99 respirators
Suppose you need coverage for 14 days and expect to wear a mask 8 hours a day. That is hours of wear. An N95/N99 respirator is rated for 16 usable hours, so the calculator computes respirators. If you enter a price of 10 per respirator, the reported cost is .
Change the selection to a mask with an N99 filter, rated for 56 hours per filter, and the same schedule needs filters. Entering a filter price of 5 and a mask price of 10 gives a filters cost of 10 and a total cost of 20, because the mask itself is counted only once. The prices here are illustrative inputs you replace with your own local costs; the hours and ratings are the calculator's data.
How do I use the coronavirus mask calculator?
The tool exposes five inputs that map directly to the formula:
- Type of face mask — choose among a cloth mask, a surgical mask, an N95/N99 respirator, a mask with an N95 or N99 filter, or other FFRs. This selection sets the usable hours and protection range.
- I need to cover my face for the next... — enter the number of days the mask rule or your need lasts; the input is measured in days.
- How long during the day? — enter average daily wear in hours; the default is 8 hours a day.
- Price of one mask — enter what you pay per mask. For filter-based options, Price of one filter also appears.
- Read the results: You need mask(s) or filter(s), plus Total cost; filter options also show Filters cost separately.
Changing any input instantly updates the count and the cost, which makes it easy to compare, for example, a two-week supply of surgical masks against the same period with a reusable respirator.
Frequently Asked Questions
Does the calculator round a partial mask up to a whole one?
Yes. The quantity formula uses a ceiling, so 1.2 masks becomes 2 masks. You cannot purchase a fraction of a mask or filter.
Why does the cloth mask count stop at five?
The calculator's custom quantity function caps cloth masks at five units. This matches the source guidance that, provided you wash them regularly, as few as five cloth masks can suffice on a daily basis.
Why do filter masks show two cost figures?
A filter mask has a one-time mask purchase and ongoing filter replacements. The tool therefore reports the filters cost separately and adds the mask price once to give the total cost.
What does the time input measure?
The period input is counted in days, while daily wear is counted in hours. The calculator multiplies them to obtain the total hours used in the quantity formula.
References
- Omni Calculator, Coronavirus Mask Calculator: mask dataset values (usable hours, protection ranges, option codes) and the tool's
get_numberandget_pricefunctions. - CDC face-covering guidance as quoted in the source article, including the recommendation to wear masks in public and the advice on regular cloth-mask washing.
- Standard arithmetic practice for rounding a required quantity up to the next whole unit.