Dose Summary
{{ format(total_mg) }} mg
{{ typeLabel }} · {{ size_value }} {{ size_unit }} (≈ {{ Math.round(size_ml) }} mL)
{{ guidelineLabel }} {{ dose_mg_per_kg.toFixed(2) }} mg/kg {{ percent_limit.toFixed(0) }}% of daily Active now {{ Math.round(active_now_mg) }} mg
{{ w }}
×
mg
min
h
min
h
Field Value Copy
Drink {{ typeLabel }}
Size {{ size_value }} {{ size_unit }} ({{ Math.round(size_ml) }} mL)
Strength {{ strength_factor.toFixed(2) }} ×
Total caffeine (mg) {{ total_mg.toFixed(2) }}
mg/mL {{ mg_per_ml.toFixed(2) }}
mg/100 mL {{ mg_per_100ml.toFixed(1) }}
mg/8 fl oz {{ mg_per_8oz.toFixed(0) }}
Dose (mg/kg) {{ dose_mg_per_kg>0 ? dose_mg_per_kg.toFixed(2) : '—' }}
Daily limit (mg) {{ daily_limit_mg }}
Percent of guideline (%) {{ percent_limit.toFixed(0) }}
Active now (mg) {{ active_now_mg.toFixed(2) }}
Half-life (h) {{ half_life_h.toFixed(2) }}
Absorption peak (min) {{ Math.round(absorb_min) }}
Look‑ahead (h) {{ Math.round(lookahead_h) }}

        

Introduction:

Caffeine dose is the amount of stimulant in a serving and it reflects both drink volume and brewing strength. A caffeine content calculator turns everyday servings into clear totals you can compare with common guidance and with your own tolerance over a typical day.

Enter a drink type and serving size, then read the total in milligrams along with density per volume and dose per body weight if you add weight. You can also enter the time since you drank it so you see an estimate of how much remains in your body now, which helps you pace energy earlier and sleep later without trial and error.

For example, a twelve ounce brewed coffee works out to roughly one hundred forty two milligrams at a neutral strength, which is about one quarter of a typical adult day. If you check again after a few hours the estimate tapers to about half as the body clears it, so you can decide whether another cup makes sense.

Results are estimates rather than diagnoses and people vary in sensitivity. Pregnancy changes limits and stronger mixes can run high, so treat high readings with care. This tool provides informational estimates and does not substitute professional advice.

Technical Details:

The quantities of interest are the total caffeine in milligrams for a serving, the concentration per milliliter and per one hundred milliliters, the equivalent per eight fluid ounces, the dose per kilogram of body mass, and the share of a daily guideline. Time since consumption is used to estimate the amount still active.

Total caffeine is computed from serving volume and a drink‑type density that reflects typical preparation. When weight is provided the calculator reports milligrams per kilogram to make doses comparable across people. A simple absorption followed by first‑order elimination is used to approximate the active amount after a given number of minutes.

Guideline bands are provided for context only. Adult limit is four hundred milligrams per day, pregnancy two hundred per day, and teen roughly one hundred per day. Alerts surface when a single serving is very high, when a dose per kilogram is strong, or when a serving alone would meet or exceed a daily guideline.

D = V/100×C×S (V=milliliters, C=milligrams per 100 milliliters, S=strength factor) D = entered milligrams when using a custom serving
Λ = ln(2) h×60 A(t) = piecewise  { if t<tpeak: D× ttpeak , if ttpeak: D× e -Λ(t-tpeak) }
Symbols and units used in formulas
Symbol Meaning Unit/Datatype Source
DTotal caffeine in servingmgDerived
VServing volumemLInput
CDensity per 100 millilitersmg/100 mLDrink type
SStrength factornumberInput
ΛElimination rate constantmin−1Derived
hHalf lifehoursInput
tMinutes since consumptionminInput
tpeakAbsorption peak timeminInput
mg/kgDose per kilogram of body massmg/kgDerived
Guideline %Share of selected daily limit%Derived
Worked example

Brewed coffee, twelve fluid ounces, neutral strength. Drink density is forty milligrams per one hundred milliliters, and volume is about three hundred fifty five milliliters.

D = (355/100)×40=141.95142 mg Guideline % = 142/400×10036 % (adult) mg/kg = 142/702.03 mg/kg Active at 45 min = 142 mg (at peak) Active 5 h after peak = 142×2-1=71 mg

Reading: a single cup is a moderate serving for an adult and would be a strong dose per kilogram only for very low body mass.

Alert thresholds and interpretations
Alert Lower Bound Upper Bound Interpretation Action Cue
High single dose 200 mg Single serving is large. Consider a smaller size next time.
Strong mg/kg 3.00 < 6.00 Notable per‑kilogram dose. Add time before another serving.
Very strong mg/kg 6.00 High per‑kilogram dose. Avoid stacking servings.
Exceeds daily guideline 100 % Single serving meets a full day. Switch to decaf or pause.

Units, precision, and rounding

  • Decimal separator is a dot and numbers are rounded to displayed places.
  • Totals show two decimals; milligrams per milliliter two; per one hundred milliliters one; per eight ounces zero; percentages as whole numbers.
  • Milliliter conversions use 29.5735295625 per fluid ounce and 236.5882365 for eight ounces.

Validation and bounds

Inputs with limits and validation
Field Type Min Max Step/Pattern Notes
Drink typeselectenumeratedSets density and default volume.
Size valuenumber00.1Units: milliliters or fluid ounces.
Strength factornumber0.10.05Applied to density for non‑custom types.
Custom milligramsnumber01Overrides density when using a custom serving.
Body weightnumber00.1Units: kilograms or pounds.
Time since consumednumber01Minutes since the serving.
Half lifenumber0.10.1Hours to halve the active amount.
Absorption peaknumber01Minutes to reach peak.
Look‑ahead windownumber61Hours plotted for the timeline.
Guidelineselectadult / pregnancy / teenDaily limits: 400, 200, about 100.

Constants and drink profiles

Conversion constants and drink density presets
Constant / Type Value Unit / Notes
Fluid ounce to milliliter29.5735295625mL per fluid ounce
Eight fluid ounces236.5882365mL
Pound to kilogram0.45359237kg per lb
Adult daily guideline400mg
Pregnancy daily guideline200mg
Teen daily guideline≈ 100mg
Brewed coffee (drip)40mg/100 mL, default 355 mL
Espresso212mg/100 mL, default 30 mL
Cold brew coffee60mg/100 mL, default 355 mL
Instant coffee (prepared)30mg/100 mL, default 240 mL
Americano25mg/100 mL, default 355 mL
Latte18mg/100 mL, default 355 mL
Cappuccino40mg/100 mL, default 180 mL
Flat white52mg/100 mL, default 240 mL
Mocha30mg/100 mL, default 355 mL
Espresso macchiato110mg/100 mL, default 60 mL
Turkish coffee80mg/100 mL, default 100 mL
Iced coffee30mg/100 mL, default 355 mL
Nitro cold brew65mg/100 mL, default 473 mL
Black tea20mg/100 mL, default 240 mL
Green tea12mg/100 mL, default 240 mL
Oolong tea16mg/100 mL, default 240 mL
White tea10mg/100 mL, default 240 mL
Chai tea (brewed)20mg/100 mL, default 240 mL
Iced black tea18mg/100 mL, default 355 mL
Iced green tea10mg/100 mL, default 355 mL
Yerba mate (brew)30mg/100 mL, default 240 mL
Matcha (prepared)28mg/100 mL, default 240 mL
Energy drink (typical)32mg/100 mL, default 250 mL
Energy drink (strong)40mg/100 mL, default 473 mL
Energy shot350mg/100 mL, default 57 mL
Caffeinated sparkling water10mg/100 mL, default 355 mL
Cola soda10mg/100 mL, default 355 mL
Guaraná soda12mg/100 mL, default 355 mL
Kombucha8mg/100 mL, default 355 mL
Chocolate milk (cold)2mg/100 mL, default 240 mL
Hot chocolate / cocoa2mg/100 mL, default 240 mL
Decaf coffee2mg/100 mL, default 240 mL
Decaf tea1mg/100 mL, default 240 mL
Thai iced tea12mg/100 mL, default 350 mL
Coffee pod (prepared)33mg/100 mL, default 240 mL

I/O and formats

Inputs and outputs
Input Accepted Families Output Encoding/Precision Rounding
Numbers and selections Drink type, size, strength, weight, time, half life, absorption, window, guideline Metrics table Two to zero decimals per metric Nearest at shown places
Copy or download CSV, JSON Tabular or structured payload UTF‑8 text As displayed for metrics
Timeline Sampled hours Hours versus milligrams Quarter hour minimum step Two decimals in samples

Networking and storage

  • All calculations run in the browser and no data is transmitted to a server.
  • The timeline relies on a charting layer; if it cannot load, metrics still compute.

Assumptions and limitations

  • Drink densities are typical values and not brand specific.
  • Strength factor scales density linearly.
  • Absorption increases linearly until the stated peak.
  • Elimination follows a constant half life with first order behavior.
  • Single serving modeling only; multiple servings are not stacked.
  • Body weight is optional; without it per kilogram is omitted.
  • Daily guideline is a comparison aid, not a prescription.
  • Heads‑up Rounding can slightly change category edges.
  • Very small half lives are clamped to a sensible minimum.
  • Units must be entered consistently to keep results comparable.

Edge cases and error sources

  • Zero or negative sizes produce zero totals.
  • Weight of zero suppresses per kilogram reporting.
  • Extremely large strengths inflate all downstream measures.
  • Very long windows show near zero tails due to rounding.
  • Minute to hour conversions introduce small rounding drift.
  • Display rounding differs from internal values used in JSON.
  • Copying single cells exports the rounded value only.
  • Switching units resets size to the type default.
  • Timeline sampling step adjusts with window length.
  • Non numeric inputs are treated as zero where applicable.
  • Percent of guideline divides by at least one to avoid zero.
  • Tooltips and timeline require browser features that may be disabled.

Privacy & compliance

No data is transmitted or stored server‑side. Outputs support personal planning only and do not constitute medical advice.

How‑to · Step‑by‑Step Guide

Estimate caffeine dose and the active amount over time for a single serving.

  1. Select a drink type required.
  2. Enter the serving size and choose the unit required.
  3. Adjust the strength factor if your brew is weaker or stronger.
  4. Optionally enter body weight for dose per kilogram.
  5. Enter minutes since consumption to estimate what remains active now.
  6. Pick a daily guideline and set half life and absorption peak if you wish.

Example: Espresso, sixty milliliters, strength one, weight seventy kilograms, forty five minutes since consumption, half life five hours.

  • If results look implausible, confirm units and strength.
  • Warning Very high single servings can trigger multiple alerts.

FAQ

Is my data stored?

No. Calculations happen in your browser and nothing is sent to a server or saved remotely.

Sensitive entries do not leave your device.
How accurate is the half life estimate?

It is a simple first order model with a user set half life and a linear rise to a peak. It is a helpful guide, not a clinical measure.

Change half life to fit your experience.
Which units can I use?

Milliliters and fluid ounces for size, kilograms and pounds for weight. Conversions use fixed factors shown above.

All totals convert internally to milliliters and kilograms.
Can I enter a custom serving?

Yes. Choose the custom option and type the total milligrams for the serving when you know it from packaging or lab data.

Strength does not apply to custom entries.
What does “borderline” mean?

Values near alert thresholds can change with rounding. Treat readings around the line as guidance and prefer a margin of safety.

Rerun with the nearest smaller size to compare.
Why does the timeline sometimes not appear?

The chart depends on a display layer. If it cannot load, the metrics still compute and you can copy results as text.

Reload the page or check network settings.
How do I compare different drinks?

Switch the type and keep size constant to compare concentrations. For fair dose comparisons, also enter body weight.

Use per kilogram to normalize across people.

Troubleshooting

  • Results are zero: confirm size is above zero.
  • Per kilogram is blank: enter a nonzero weight.
  • Alerts look wrong: check units and strength.
  • Timeline missing: the chart layer may not be available.
  • Copy shows rounded values: use JSON for full precision.
  • Unexpected resets: changing type resets the default size.

Advanced Tips

  • Tip Use the same unit every time to keep runs comparable.
  • Tip Nudge strength up or down to match your usual brew.
  • Tip Shorten the window when you want detail near the peak.
  • Tip Keep half life consistent across tests to compare days.
  • Tip Use per kilogram to compare across different body weights.
  • Tip Copy CSV for quick sharing and JSON for downstream tools.

Glossary

Caffeine dose
Total stimulant amount in a serving measured in milligrams.
Concentration
Amount per milliliter or per one hundred milliliters.
Half life
Time for the active amount to reduce by half.
Absorption peak
Time from drinking to the maximum active amount.
Dose per kilogram
Milligrams divided by body mass in kilograms.
Guideline percent
Serving share of the selected daily limit.