Home Daily Life Food & Cooking Coffee Calculator
Your Profile
Metabolism
Advanced
Log a Drink
Today's Log
No drinks yet — log one above
CURRENT CAFFEINE
0mg
No Intake Yet
@ Bedtime
Peak Today
0
Drinks Today
Daily Limit %
Safe Cut-Off
Ideal 1st Coffee
Next Top-Up
Total Today
7-Day Avg
Sleep Efficiency Score
--
Log drinks to see your sleep efficiency score
Current = Σ[ mgi × 0.5( Δhi ÷ 5.0h ) ]
Now = 0.0 mg  |  Bedtime = 0.0 mg
7-Day Caffeine History
Brew Method
Solve Mode
Strength
Advanced
1:5 (strong)1:20 (light)
WATER NEEDED
ml
Ratio 1:15
Coffee
💧 Water
⚖️ Ratio 1:15
🍷 Yield ~1 cup
GrindMedium-Fine
Temp93°C
Time3–4 min
Flavor Profile
Estimated Caffeine
~ — mg per cup
Based on medium roast · adjust in Advanced
Water = g × 15 = ml
💡 Select a brew method to see tips
Saved Recipes
No saved recipes yet — save your favourite brew above
Home Brew
$
Cafe Comparison
$
One-Time Equipment
$
$
MONTHLY SAVINGS
$—
vs brewing at a cafe
$—
Cost/Cup (Home)
$—
Cost/Cup (Cafe)
$—
Monthly Home
$—
Monthly Cafe
$—
Monthly Savings
$—
Annual Savings
Bags / Month
$—
Cost / Gram
Home (%) Cafe (%)
30-Year Savings Projection
Cost Per Cup by Brew Method
MethodDoseCost/Cup
Monthly Home = ( ÷ g ) × g × × 30
= / month

How It Works

1

Log Your Drinks

Tap a preset or add a custom amount with the time you consumed it. Your caffeine curve updates instantly.

2
📈

See Your Decay Curve

Watch the 24-hour caffeine decay chart update in real time, showing exactly how much will remain at bedtime.

3
💤

Optimize Your Sleep

Your sleep efficiency score tells you how tonight’s sleep will be affected. Adjust your intake to stay in the green zone.

Frequently Asked Questions

How long does caffeine stay in your system?

Caffeine has a half-life of about 5 hours for most people, meaning half is metabolized every 5 hours. It can take 10–12 hours to clear most caffeine from your system. Genetics, liver health, and medications can make this faster or slower.

How much caffeine is safe per day?

Health authorities generally consider up to 400mg per day safe for healthy adults (about 4 cups of coffee). Pregnant individuals should limit intake to 200mg. Sensitivity varies widely — some people feel effects at 50mg.

What is the cortisol peak and why avoid coffee then?

Cortisol, your natural alertness hormone, peaks 30–45 minutes after waking. Drinking coffee during this peak builds caffeine tolerance faster and reduces its effectiveness. Waiting 90 minutes after waking lets cortisol naturally rise before you supplement with caffeine.

What is the golden coffee-to-water ratio?

The Specialty Coffee Association recommends 1:15 to 1:17 (1g coffee per 15–17ml water) for most filter methods like pour over and drip. Espresso uses a much more concentrated ratio of 1:2. Cold brew uses 1:8. Adjust to taste with the strength setting.

Does roast level affect caffeine content?

Contrary to popular belief, light roasts and dark roasts have nearly the same caffeine by weight. Roasting slightly reduces caffeine, but the difference is minimal (roughly 5–10%). What matters more is the brew method and how many grams of coffee you use.

How much does homemade coffee save vs a cafe?

The average cafe drink costs $5–$7. A home-brewed cup using quality beans typically costs $0.50–$1.50. At 2 cups per day, that’s a potential saving of $100–$200 per month, or $1,200–$2,400 per year.

What grind size should I use?

Grind size affects extraction speed. Espresso uses fine grinds for 25–30 second extractions under pressure. Pour over and drip use medium-fine to medium grinds. French press and cold brew use coarse grinds for longer, gentler extractions.

What water temperature is best for brewing coffee?

Most filter methods work best at 91–96°C (196–205°F). AeroPress can use cooler water (80–85°C) for a sweeter, less bitter cup. Cold brew uses room temperature or cold water but requires 12–24 hours. Never use boiling water (100°C) as it scorches the coffee.

Coffee Calculation Formulas

Caffeine Decay

C(t) = C₀ × (0.5)(t / 5.7)

Caffeine follows an exponential decay curve with a half-life of approximately 5.7 hours for the average adult. C₀ is the initial dose in milligrams, and t is the time elapsed in hours. After one half-life, half the original dose remains; after two half-lives, one quarter remains.

Brew Ratio

Water (ml) = Coffee (g) × Ratio

The golden ratio for filter coffee is 1:15 to 1:18 (coffee to water by weight). A ratio of 1:15 produces a stronger cup while 1:18 yields a lighter brew. Espresso uses a much tighter ratio of 1:2, and cold brew uses 1:8 for its concentrate.

Cost Comparison

Annual Savings = (Cafe cost/cup − Home cost/cup) × cups/year

Compare the per-cup cost of home brewing against your local cafe price. Factor in the cost of beans, filters, water, and amortized equipment to get your true home brew cost. Multiply the per-cup difference by your annual consumption to see total savings.

Key Terms

Caffeine Half-Life
The time it takes for your body to metabolize half of the caffeine in your system. For most healthy adults this is approximately 5 to 6 hours, though it varies based on genetics, liver function, pregnancy status, and certain medications.
Extraction Yield
The percentage of soluble compounds dissolved from the ground coffee into the water during brewing. An ideal extraction is 18–22%. Under-extraction produces sour, weak coffee, while over-extraction creates bitter, harsh flavors.
TDS (Total Dissolved Solids)
A measurement of the concentration of dissolved coffee compounds in the final brew, expressed as a percentage. Typical filter coffee has a TDS of 1.15–1.45%. Higher TDS means a stronger, more intense cup.
Brew Ratio
The weight ratio of ground coffee to water used in brewing. Expressed as 1:X where X is the water multiplier. A 1:16 ratio means 1 gram of coffee for every 16 grams (milliliters) of water. Different methods use different ratios for optimal results.
Grind Size
The coarseness of ground coffee particles. Finer grinds extract faster and are used for espresso (25–30 seconds), while coarser grinds extract slowly and suit immersion methods like French press (4 minutes) and cold brew (12–24 hours).
Adenosine Receptor
Brain receptors that normally bind with adenosine to promote drowsiness. Caffeine molecules are structurally similar to adenosine and block these receptors, preventing the sensation of tiredness and promoting alertness for several hours after consumption.

Worked Examples

Example 1: Caffeine Decay

Scenario: You drink a 200mg espresso at 8:00 AM.

After 5.7 hours (1:42 PM): 200 × 0.5 = 100 mg remaining

After 11.4 hours (7:24 PM): 200 × 0.25 = 50 mg remaining

Result: You will be below the sleep-safe threshold of 50 mg by approximately 7:30 PM, making a 10 PM bedtime comfortable.

Example 2: Pour-Over Ratio

Scenario: Brewing a pour-over at 1:16 ratio with 20g of coffee.

Water = 20g × 16 = 320 ml of water

Result: Use 20 grams of medium-fine ground coffee with 320 ml of water heated to 93°C. This produces one standard cup with a balanced, medium-strength brew.

Example 3: Home Brew vs Cafe

Scenario: One cup per day, home brew at $0.50 vs cafe at $5.00.

Home annual: $0.50 × 365 = $182.50

Cafe annual: $5.00 × 365 = $1,825.00

Result: Annual savings of $1,642.50 by brewing at home — enough to buy a premium grinder and still come out well ahead.

Caffeine Content by Drink

DrinkServingCaffeine (mg)Cost (avg)
Espresso1 oz63$3.00
Drip Coffee8 oz95$2.50
Cold Brew12 oz200$4.50
Latte12 oz75$5.00
Green Tea8 oz28$3.00
Energy Drink16 oz160$3.50

The Science of Coffee: From Bean to Buzz

Coffee is the most widely consumed psychoactive substance on earth, with over two billion cups enjoyed every day worldwide. Behind every sip lies a complex interplay of chemistry, biology, and physics that determines how caffeine affects your body, how flavor compounds are extracted from the bean, and why the timing of your daily cup matters far more than most people realize.

How Caffeine Works

Caffeine exerts its stimulating effect by blocking adenosine receptors in the brain. Adenosine is a neurotransmitter that accumulates throughout the day and promotes drowsiness by binding to its receptors. Because caffeine molecules share a similar molecular structure, they fit into these same receptors without activating them, effectively preventing adenosine from signaling fatigue. The result is increased alertness, faster reaction times, and improved concentration that typically peaks 30 to 60 minutes after consumption.

The Half-Life Curve and Sleep

Caffeine is metabolized by the liver with a half-life that averages 5 to 6 hours in healthy adults. This means that a 200 mg dose consumed at noon will still leave approximately 100 mg circulating at 5 PM and 50 mg at 10 PM. Research consistently shows that even modest caffeine levels at bedtime reduce total sleep time, decrease deep sleep stages, and increase nighttime awakenings. Most sleep scientists recommend keeping caffeine intake to before 2 PM, though individual metabolism varies significantly based on genetics and enzyme activity.

Optimal Brew Ratios

The Specialty Coffee Association recommends a brew ratio between 1:15 and 1:18 for most filter methods, meaning one gram of coffee for every 15 to 18 grams of water. Espresso operates at a dramatically different ratio of roughly 1:2, producing a concentrated shot in 25 to 30 seconds under nine bars of pressure. Cold brew uses a 1:8 ratio with coarse grounds steeped for 12 to 24 hours, resulting in a smooth concentrate that can be diluted to taste. The right ratio depends on personal preference, but starting at 1:16 provides a balanced foundation for most palates.

Extraction Science

Brewing coffee is fundamentally an extraction process where hot water dissolves soluble compounds from ground beans. An ideal extraction pulls 18 to 22 percent of the available solubles. Under-extracted coffee tastes sour and thin because acids dissolve first, while over-extracted coffee becomes bitter as heavier tannins and chlorogenic acids enter the brew. Grind size, water temperature, and contact time are the three primary levers for controlling extraction. Finer grinds increase surface area for faster extraction, hotter water accelerates the dissolution of compounds, and longer brew times allow more material to dissolve.

The Cost of Daily Coffee

A daily cafe habit adds up remarkably fast. At five dollars per cup and five days per week, annual spending reaches $1,300 before tips. Home brewing with quality specialty beans typically costs between 50 cents and one dollar fifty per cup, potentially saving over a thousand dollars annually. The initial investment in a good grinder and brewer pays for itself within a few months. Even factoring in equipment, filters, and electricity, home brewing costs roughly 70 to 85 percent less per cup than purchasing from a cafe.

Tolerance and Recommended Limits

Regular caffeine consumption leads to physiological tolerance as the brain produces additional adenosine receptors to compensate for chronic blocking. This means habitual drinkers need progressively more caffeine to achieve the same alertness effect. The FDA considers 400 mg per day safe for most healthy adults, equivalent to roughly four standard cups of drip coffee. Pregnant individuals are advised to limit intake to 200 mg per day. Symptoms of excessive consumption include anxiety, rapid heartbeat, digestive upset, and disrupted sleep architecture.

Cold Brew vs Hot Brew

Cold brew and hot brew produce fundamentally different flavor profiles due to the role of temperature in extraction chemistry. Hot water extracts a broad spectrum of compounds quickly, including volatile aromatics and bright acids that give hot coffee its characteristic complexity. Cold water extracts more slowly and selectively, producing a smoother, naturally sweeter concentrate with up to 67 percent less acidity. However, cold brew typically contains more caffeine per serving because of its higher coffee-to-water ratio and extended steeping time. The lower acidity makes cold brew gentler on sensitive stomachs, contributing to its growing popularity as a year-round beverage.

Key Formulas

Caffeine Decay

C(t) = C0 x 0.5^(t / 5.7)

Caffeine follows exponential decay with a half-life of ~5.7 hours. After one half-life, 50% remains; after two, 25%.

Brew Ratio

Water (ml) = Coffee (g) x Ratio

SCA golden ratio: 1:15 to 1:18 for filter. Espresso uses 1:2. Cold brew uses 1:8 for concentrate.

Cost Savings

Annual Savings = (Cafe - Home) x cups/year

Compare per-cup costs including beans, filters, water, and amortized equipment against your typical cafe spend.

Extraction Yield

Yield% = (Dissolved Solids / Dry Coffee) x 100

Ideal extraction is 18-22%. Under-extraction tastes sour; over-extraction tastes bitter. Grind size and water temp control this.

Key Terms Explained

Caffeine Half-Life

The time for your body to metabolize half the caffeine in your system -- approximately 5-6 hours for most adults. Varies based on genetics, liver function, pregnancy, and medications.

Extraction Yield

Percentage of soluble compounds dissolved from grounds into water during brewing. Ideal range: 18-22%. Under-extraction = sour; over-extraction = bitter.

TDS (Total Dissolved Solids)

Concentration of dissolved coffee compounds in the final brew, expressed as a percentage. Typical filter coffee: 1.15-1.45% TDS. Higher = stronger cup.

Brew Ratio

Weight ratio of ground coffee to water, expressed as 1:X. A 1:16 ratio means 1g coffee per 16ml water. Different methods need different ratios.

Grind Size

Coarseness of ground coffee. Fine grinds extract fast (espresso, 25-30 sec). Coarse grinds extract slowly (French press, 4 min; cold brew, 12-24 hrs).

Adenosine Receptor

Brain receptors that normally bind adenosine to promote drowsiness. Caffeine blocks these receptors due to structural similarity, preventing tiredness signals for several hours.

Worked Examples

Caffeine Decay Timing

Scenario: 200 mg espresso at 8:00 AM.

At 1:42 PM (5.7 hrs): 200 x 0.5 = 100 mg remaining

At 7:24 PM (11.4 hrs): 200 x 0.25 = 50 mg remaining

Below sleep-safe 50 mg by ~7:30 PM. A 10 PM bedtime is comfortable.

Pour-Over Brew Calculation

Scenario: 1:16 ratio with 20g coffee.

Water = 20 x 16 = 320 ml

Use medium-fine grind, water at 93 C. Produces one balanced, medium-strength cup in about 3 minutes.

Annual Home Brew Savings

Scenario: 1 cup/day, home at $0.50 vs cafe at $5.00.

Home annual: $0.50 x 365 = $182.50

Cafe annual: $5.00 x 365 = $1,825.00

Savings: $1,642.50/year -- enough for a premium grinder and beans.