Smoking Pack-Year Calculator
Compute smoking pack-years from cigarettes per day and years smoked.
Packs per day times years
Enter cigarettes smoked per day and years smoked. One pack is 20 cigarettes by definition, so pack-years is (cigarettes ÷ 20) × years; 20 a day for 10 years is 10 pack-years. The substituted line prints both factors.
The figure assumes a constant habit across the whole period and does not model quitting, restarting or a change in amount, so a varying history needs one row per period added by hand. A value of zero or below is refused rather than silently accepted. This is arithmetic aid for a qualified reader, not a diagnosis or medical advice.
One division and one multiplication on two fields. The same pair prints the same pack-years after a reload, and nothing about the entry is stored.
The page computes pack-years as (cigarettes per day ÷ 20) × years smoked, taking one pack as 20 cigarettes by definition. The result is in pack-years, a unit that is itself the product.
It prints the division, the multiplication and the result, so the twenty-per-pack convention is visible rather than assumed.
How to use it
Enter the cigarettes smoked per day and the years smoked, then press Run. Both must be above zero. The output prints the pack-years and the arithmetic with both numbers. Nothing else is asked for and nothing is inferred.
The arithmetic
Twenty a day for ten years is (20 ÷ 20) × 10 = 10 pack-years; ten a day for the same period is 5. Because packs per day is cigarettes ÷ 20, a different pack size would give a different answer, and the page does not offer one. The figure scales linearly in both inputs.
Where the page stops
The page does not ask when the smoking happened, does not model quitting, and does not classify the total. It also does not convert from packs directly — enter the cigarettes per day, or multiply the packs by 20 first.
What to Expect
Best for
- Expressing a smoking history as one pack-year figure.
What this tool keeps
- The arithmetic is printed, so the twenty-per-pack convention is never hidden.
What may need cleanup
- Nothing: one number and one line of arithmetic.
Sample input
20 cigarettes/day for 10 years
Sample output
Pack-years = 10 (20 cigarettes/day ÷ 20) × 10 years = 10 pack-years
Frequently asked questions
How do I use the smoking pack-year calculator?
Enter the cigarettes smoked per day and the number of years smoked, then press Run. The page prints the pack-years and the arithmetic with both numbers in it.
Is anything uploaded when I press Run?
No. The arithmetic runs in this tab with JavaScript: nothing is posted to a server, nothing is stored, and reloading the page discards both the input and the result.
What if I know packs per day rather than cigarettes?
Multiply the packs by 20 to get cigarettes per day, since the page's convention is 20 per pack, and the printed line will show the converted figure. The page does not accept packs directly.
Is this a diagnosis or medical advice?
No. It is an arithmetic aid for a qualified reader: the page prints the formula's output and the numbers behind it, and leaves interpretation, and any decision taken from it, to someone qualified to make it. It is not a diagnosis and not medical advice.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.