Sugar intake calculator
Turn your daily calories into a ceiling for added sugar: on 2000 calories at the common 10% guideline, that is 200 calories or 50 g of added sugar, about 12.5 teaspoons. A stricter 5% option halves it. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Calorie intake
- 2,000
- Guideline percentage
- 10
- Calorie intake kcal
- 2,000 g/day
- Sugar kcal
- 200
- Max added sugar g
- 50
- Teaspoons
- 12.5
Added sugars are sugars and syrups put into foods during processing or preparation, distinct from the lactose in milk and the fructose that occurs naturally in whole fruit. Public-health agencies typically cap added sugar at a percentage of daily energy—most often ten percent of calories, with a stricter five percent option for extra dental and cardiometabolic benefit—then convert that energy slice into grams using four kilocalories per gram of carbohydrate. This sugar intake calculator applies that conversion: it multiplies daily calorie intake by the guideline percentage, divides by one hundred, then divides by four to return the maximum recommended grams of added sugar for the day, plus the matching sugar kilocalories and a teaspoon equivalent. Non-positive calorie intake is rejected as invalid input because a zero or negative energy budget cannot define a sugar allowance.
What the calculator measures and which inputs you need
Maximum recommended daily added sugar is the gram ceiling that corresponds to a chosen share of daily energy. The formula is transparent: sugar kilocalories equal calorie intake times guideline percentage divided by one hundred; grams equal those kilocalories divided by four, because one gram of sugar yields four kilocalories. For a two-thousand-calorie day at ten percent, that is two hundred sugar kilocalories, or fifty grams—the familiar Daily Value used on United States Nutrition Facts labels.
At five percent on the same energy budget the ceiling is twenty-five grams, which is the stricter World Health Organization additional-benefit target often quoted in dental and cardiometabolic education. The engine does not guess your calories from body weight, activity, or a food log—you must already have a daily energy number.
Reading your result and avoiding common mistakes
Do not confuse it with cooking converters that turn cups of granulated sugar into grams for a recipe—that is a kitchen density problem with a different search intent. Extremely large calorie intakes above the published isolate safety cap are rejected. A guideline percentage of zero or negative is rejected because it cannot define a maximum intake.
Percentages above one hundred are rejected because they would claim more than the entire energy budget. This is a planning and literacy tool, not a diagnostic medical device, and people with diabetes, pediatric needs, or clinical carbohydrate prescriptions should follow professional advice rather than any single percentage rule.
What you can do with it
Coaching and meal planning
Coaches enter a client’s daily calories and a ten or five percent guideline to show a gram added-sugar ceiling next to teaspoons for weekly meal targets and label literacy.
FAQ
How is maximum daily added sugar calculated?
Grams equal those kilocalories divided by four (the Atwater factor). At two thousand calories and ten percent the ceiling is fifty grams.
What happens if calorie intake is zero or negative?
Non-positive calorie intake cannot define a sugar energy budget; failed validation is not charged.
What guideline percentage should I use?
Ten percent is the common WHO free-sugars cap and the FDA Daily Value basis; five percent is the stricter additional-benefit target. If you omit the field, the calculator uses ten.
Is the sugar intake calculator free?
The browser tool runs free on your device.
Does this count natural sugars in fruit and milk?
No. The result is an added-sugar ceiling from an energy percentage, not a total-carbohydrate or naturally occurring sugar total. Use food logs for those distinctions.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/health/sugar-intake \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"calorie_intake":2000}'const res = await fetch("https://api.kit.forhosting.com/health/sugar-intake", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"calorie_intake": 2000
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/health/sugar-intake",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"calorie_intake": 2000
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/health/sugar-intake", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"calorie_intake":2000}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"calorie_intake":2000}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/health/sugar-intake", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"calorie_intake": 2000
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "health.sugar_intake",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
The path is pure deterministic arithmetic with no network calls and no random seed, so coaching apps, meal-planning tools, and prepaid API clients receive identical JSON every time.
What the calculator measures and which inputs you need
Send calorie_intake as a positive finite number of kilocalories per day; aliases calories, kcal, energy_kcal, and calorie_intake_kcal are accepted so wellness apps can map existing field names without renaming payloads. Send guideline_percentage as a positive finite number greater than zero and at most one hundred; if you omit it, the engine uses ten, the common WHO and FDA energy-share cap. Aliases percent, pct, sugar_percent, and added_sugar_percent map to the same field. Missing calorie intake, empty strings, non-finite numbers, and any calorie intake that is zero or negative fail with invalid_input and are not billed. Identical inputs always produce identical JSON because the path never touches the network, a language model, a clock, or a random generator.
Reading the response fields and avoiding common mistakes
On success the response echoes calorie_intake_kcal and guideline_percentage, then sugar_kcal (the energy slice allocated to added sugar), max_added_sugar_g (the headline gram ceiling), and teaspoons using four grams per teaspoon so kitchen spoons can be compared with labels. The field kcal_per_gram is always four, unit is always g/day, formula restates grams equals calories times percentage over one hundred over four, and method is always energy_percent_added_sugar so downstream code can branch without sniffing shapes. Use max_added_sugar_g when a meal planner only needs one scalable daily ceiling; use sugar_kcal when education materials must show the energy budget next to the gram number; use teaspoons when talking to people who think in spoons rather than grams. Do not confuse added sugar with total carbohydrate or with naturally occurring sugars in fruit and milk: this endpoint only scales an energy percentage into grams.
API usage, pricing, coaching workflows, and practical limits
Call the free in-browser sugar intake calculator for quick checks, client education, lecture demos, and grocery-label planning without installing a nutrition spreadsheet. Prefer calorie intakes that already match your product’s daily energy estimate—if you only know macros, convert them to kilocalories first before calling. Keep expectations educational: this is a planning and literacy tool, not a diagnostic medical device, and users with atypical needs should follow clinical guidance rather than any single formula alone. Ten percent of two thousand calories is fifty grams; five percent is twenty-five grams; those two checkpoints are the ones most public-health pages quote, and this calculator reproduces them exactly so your interface never disagrees with a label footnote. Send a JSON body with required calorie_intake (or an alias) and, optionally, guideline_percentage. Use the prepaid API when a wellness SaaS, telehealth intake form, school cafeteria planner, or calorie-tracking pipeline needs a stable contract at $0.002 per successful item; validation failures never consume balance after the engine rejects the request. Pair this endpoint with your own food-logging database: compute the gram ceiling here, then score logged added sugars against max_added_sugar_g on the client. Authors shipping SDKs can map max_added_sugar_g, sugar_kcal, and teaspoons into dashboard cards and export CSV columns labeled gram ceiling, sugar energy, and spoons—the same numbers dietitians write by hand when they apply ten percent of calories divided by four on paper.
Integration use cases
Wellness and nutrition apps
Apps that already store energy goals call a stable prepaid endpoint for daily added-sugar grams instead of reimplementing percent-of-calories math in every client language.
Classroom and public-health demos
Courses compare ten percent and five percent energy caps on the same calorie budget and pin expected JSON in automated tests with fully deterministic outputs.