How every Drawline calculator works and how it is checked: the exact formulas, worked cases read off the live calculators, the inputs where they refuse to answer, and the tests that run before each release.
Every calculator does arithmetic on numbers you enter. None suggests a dose, and nothing is filled in for you. The numbers on this page are test inputs chosen to exercise the arithmetic and every stop. They are not doses.
These are the formulas in the code, with their units. The website and the app run the same dose math.
- Concentration (mg per mL) = amount in the vial (mg) ÷ BAC water added (mL). 1 mg = 1,000 mcg.
- Volume (mL) = dose ÷ concentration.
- Units = volume × 100 on a U-100 syringe, volume × 40 on a U-40 syringe. A 1 mL syringe marked in mL shows the volume.
- Doses in the vial = amount in the vial ÷ dose, rounded down to whole doses.
- A second compound in the vial (Show all, then add it): amount per draw = its amount in the vial ÷ the doses in the vial.
- BAC water to add (mL) = (amount in the vial ÷ dose) × (the line you picked ÷ 100) on U-100, or (line ÷ 40) on U-40. On a syringe marked in mL the line is already in mL.
- The draw is then the line you picked. More than 3 mL of water is flagged, because many vials hold about 3 mL.
- Volume (mL) = dose ÷ the strength on the label (mg per mL). Units = volume × 100 (U-100) or × 40 (U-40).
- The liquid in the vial is optional. With it, doses in the vial = strength × liquid in the vial ÷ dose.
- The same arithmetic as the peptide calculator: a powder vial you mix, or a labeled liquid vial. Each page adds the notes for that compound.
- Semaglutide and tirzepatide add one more stop: the dose may not be above the highest dose on the label (semaglutide 7.2 mg (Wegovy HD); tirzepatide 15 mg (Zepbound and Mounjaro)).
- GLP-1 calculators do not offer a U-40 syringe. FDA has reported errors from mixing up syringe types.
- Units = dose of the first compound ÷ (first compound amount ÷ water) × 100.
- Each other compound per draw = dose of the first × (its amount ÷ the first amount). Its concentration = its amount ÷ water.
- Water to add (mL) = amount in the vial ÷ dose × (line ÷ 100) on U-100, or × (line ÷ 40) on U-40.
- Concentration = amount ÷ water. Full doses = amount ÷ dose, rounded down.
- If the water is not a whole 0.1 mL, the page also shows the draw with the water rounded to 0.1 mL: draw = dose ÷ (amount ÷ rounded water) × 100 (or × 40).
- mL = amount (mg) ÷ concentration (mg per mL). Units = mL × 100 (U-100) or mL × 40 (U-40).
- Per unit = concentration × 1,000 ÷ units per mL, in mcg.
- mL = units ÷ 100 (U-100) or units ÷ 40 (U-40). Amount = mL × concentration, shown in mcg when under 1 mg.
- The semaglutide and tirzepatide units to mg charts use units = amount ÷ concentration × 100, and say "over 100" when one fill of a 1 mL syringe cannot hold it.
- Amount (mg) = old units ÷ 100 × old strength. New units = amount ÷ new strength × 100. So new units = old units × old strength ÷ new strength, and the amount stays the same.
- When the new vial is more than twice as strong, or less than half as strong, the answer waits until you tick that your pharmacist confirmed the new strength.
- Brand vials follow the label, not a formula. A Zepbound or Mounjaro single-dose vial is the whole 0.5 mL (50 units on a U-100 1 mL syringe). A multi-dose vial is a fixed 0.6 mL a dose (60 units).
- Compounded vial: volume (mL) = the dose on your vial prescription (mg) ÷ the strength on the label (mg per mL). Units = volume × 100. U-100 syringes only.
- It never turns a pen dose into a vial dose. The strength is typed twice, and the draw shows only after you tick that your pharmacist will confirm it.
- Weight in kg = pounds × 0.45359237.
- Grams a day = weight in kg × the published range, each end rounded to the nearest 5 g: little or no exercise 0.8 g per kg; exercise most days 1.4–2 g per kg; strength training to build muscle 1.6–2.2 g per kg.
- Per meal = weight in kg × 0.25, rounded to the nearest 5 g.
- Whole doses in a vial = amount ÷ dose, rounded down.
- Doses used per vial = the smaller of the whole doses and the injections in 28 days (28 × injections a week ÷ 7, rounded down), and at least 1. A multi-dose vial is usually thrown away 28 days after first use unless the label says otherwise.
- Days a vial lasts = the smaller of whole doses ÷ injections a week × 7, and 28.
- Injections = injections a week × weeks, rounded up. Vials = injections ÷ doses used per vial, rounded up. BAC water needed = vials × water per vial. Total amount = dose × injections.
- Dose at each step = the dose in the calculator + the increase your prescriber set × (step number − 1). Step 1 is the dose in the calculator.
- Draw = that dose ÷ concentration × 100 (or × 40). A step reads Do not draw when it is over the syringe, more than the vial or under 2 units.
- 1 mg = 1,000 mcg. Units = mL × 100 on a U-100 syringe.
Worked cases
Each row is a real result. A script (tools/calcval_test.js) typed the inputs into the live calculator page in a browser and copied what the screen showed. Nobody typed these numbers. Before each release the same script types all 60 cases again and fails the release if any number here differs from the live calculator. 24 of the cases are inputs the calculators must refuse.
| Inputs | Result | Also shown |
|---|
| 10 mg vial, 2 mL water, dose 250 mcg, U-100 1 mL syringe | 5 units | Volume 0.05 mL. Between lines. |
| 5 mg vial, 2 mL water, dose 250 mcg, U-100 0.3 mL syringe | 10 units | Volume 0.1 mL. Clean draw. |
| 10 mg vial, 3 mL water, dose 2 mg, U-100 1 mL syringe | 60 units | Volume 0.6 mL. Clean draw. |
| 5 mg vial, 2.5 mL water, dose 333 mcg, U-100 0.5 mL syringe | 16.7 units | Volume 0.167 mL. Between lines. |
| 5 mg vial, 1 mL water, dose 500 mcg, U-100 1 mL syringe | 10 units | Volume 0.1 mL. Clean draw. |
| 5 mg vial, 0.5 mL water, dose 6 mg, U-100 1 mL syringe | Do not draw | The dose is bigger than the whole vial. |
| 10 mg vial, 2 mL water, dose 10 mg, U-100 1 mL syringe | Do not draw | That works out to 2 mL, more than a 1 mL syringe holds. |
| 5 mg vial, 2 mL water, dose 1 mg, U-100 0.3 mL syringe | Do not draw | This dose will not fit this syringe. |
| 5 mg vial, 2 mL water, dose 1 mcg, U-100 1 mL syringe | Do not draw | Under 2 units is too small to measure safely. |
| Inputs | Result | Also shown |
|---|
| 10 mg vial, not mixed, dose 250 mcg, land it on 5 units, U-100 1 mL syringe | 2 mL | Then draw to 5 units. Between lines. |
| 5 mg vial, not mixed, dose 250 mcg, land it on 10 units, U-100 0.3 mL syringe | 2 mL | Then draw to 10 units. Clean draw. |
| Inputs | Result | Also shown |
|---|
| 2.5 mg/mL on the label, dose 1 mg, U-100 1 mL syringe | 40 units | Volume 0.4 mL. Clean draw. |
| 200 mg/mL on the label, dose 100 mg, 1 mL marked in mL syringe | 0.50 mL | Volume 0.5 mL. Clean draw. |
| 15 mg/mL on the label, dose 7.5 mcg, U-100 1 mL syringe | Do not draw | Under 2 units is too small to measure safely. |
| 2.5 mg/mL on the label, dose 25 mg, U-100 1 mL syringe | Do not draw | That works out to 10 mL, more than a 1 mL syringe holds. |
| Inputs | Result | Also shown |
|---|
| 10 mg vial, 2 mL water, dose 250 mcg, U-100 1 mL syringe, 7 a week for 12 weeks | One vial lasts about 28 days (its day-28 discard date). You need 3 vials for 12 weeks. | Uses your dose from step 1: 250 mcg per injection, 40 doses in each vial, 28 of them used before day 28. |
| 5 mg vial, 2 mL water, dose 500 mcg, U-100 1 mL syringe, 1 a week for 12 weeks | One vial lasts about 28 days (its day-28 discard date). You need 3 vials for 12 weeks. | Uses your dose from step 1: 500 mcg per injection, 10 doses in each vial, 4 of them used before day 28. |
| Inputs | Result | Also shown |
|---|
| 10 mg vial, 2 mL water, dose 250 mcg, U-100 1 mL syringe, up 250 mcg a step, 3 steps of 2 weeks | 5 units, 10 units, 15 units | step 1, weeks 1–2: 250 mcg; step 2, weeks 3–4: 500 mcg; step 3, weeks 5–6: 750 mcg |
| 10 mg vial, 2 mL water, dose 1.5 mg, U-100 0.5 mL syringe, up 0.5 mg a step, 4 steps of 4 weeks | 30 units, 40 units, 50 units, Do not draw | step 1, weeks 1–4: 1.5 mg; step 2, weeks 5–8: 2 mg; step 3, weeks 9–12: 2.5 mg; step 4, weeks 13–16: 3 mg |
| Inputs | Result | Also shown |
|---|
| 5 mg vial, 2 mL water, dose 250 mcg, U-100 1 mL syringe | 10 units | Lands on a marked line. Volume: 0.1 mL. |
| 5 mg vial, 0.5 mL water, dose 6 mg, U-100 1 mL syringe | Do not draw | 6 mg is more than the whole vial holds (5 mg). |
| Inputs | Result | Also shown |
|---|
| 2.5 mg/mL on the label, dose 0.25 mg, U-100 0.5 mL syringe | 10 units | Lands on a marked line. Volume: 0.1 mL. |
| 10 mg/mL on the label, dose 7.2 mg, U-100 1 mL syringe | 72 units | Lands on a marked line. Volume: 0.72 mL. |
| 10 mg/mL on the label, dose 8 mg, U-100 1 mL syringe | Do not draw | 8 mg is more than the highest dose on the Wegovy HD label (7.2 mg). |
| 2.5 mg/mL on the label, dose 1 mg, U-100 0.3 mL syringe | Do not draw | This dose will not fit this syringe. |
| Inputs | Result | Also shown |
|---|
| 10 mg/mL on the label, dose 5 mg, U-100 1 mL syringe | 50 units | Lands on a marked line. Volume: 0.5 mL. |
| 20 mg/mL on the label, dose 16 mg, U-100 1 mL syringe | Do not draw | 16 mg is more than the highest dose on the Zepbound and Mounjaro label (15 mg). |
| 15 mg/mL on the label, dose 7.5 mcg, U-100 1 mL syringe | Do not draw | Under 2 units (0.001 mL) is too small to measure safely. |
| Inputs | Result | Also shown |
|---|
| 200 mg/mL on the label, dose 100 mg, 1 mL marked in mL syringe | 0.50 mL | Draw to the 0.50 mL line. |
| 200 mg/mL on the label, dose 250 mg, 1 mL marked in mL syringe | Do not draw | That works out to 1.25 mL, more than a 1 mL syringe holds. |
| Inputs | Result | Also shown |
|---|
| 10 mg vial, 10 mg TB-500, 2 mL water, dose 500 mcg, U-100 1 mL syringe | 10 units | Each draw also carries TB-500: 500 mcg (5 mg/mL). Lands on a marked line. Volume: 0.1 mL. |
| Inputs | Result | Also shown |
|---|
| 5 mg/mL on the label, dose 1 mg, U-100 1 mL syringe | 20 units | Lands on a marked line. Volume: 0.2 mL. |
| 2 mg/mL on the label, dose 100 mcg, U-100 0.5 mL syringe | 5 units | Lands on a marked line. Volume: 0.05 mL. |
| Inputs | Result | Also shown |
|---|
| 5 mg/mL, a reading of 20 units on a U-100 syringe | 20 units = 0.2 mL = 1 mg | |
| 5 mg/mL, a reading of 20 units on a U-40 syringe | 20 units = 0.5 mL = 2.5 mg | |
| Inputs | Result | Also shown |
|---|
| 2.5 mg/mL on the label, dose 0.5 mg, U-100 1 mL syringe | 20 units | Lands on a marked line. Volume: 0.2 mL. |
| Inputs | Result | Also shown |
|---|
| 10 mg vial, dose 250 mcg, land it on 10 units, U-100 syringe | 4 mL | 2.5 mg per mL, 40 full doses. Check that 4 mL fits in your vial before adding it. |
| 10 mg vial, dose 250 mcg, land it on 5 units, U-100 syringe | 2 mL | 5 mg per mL, 40 full doses. Each dose fills the syringe to the 5 unit line. |
| 10 mg vial, dose 250 mcg, land it on 4 units, U-40 syringe | 4 mL | 2.5 mg per mL, 40 full doses. Check that 4 mL fits in your vial before adding it. |
| 5 mg vial, dose 300 mcg, land it on 10 units, U-100 syringe | 1.67 mL | 3 mg per mL, 16 full doses. Most people measure water to 0.1 mL. With 1.7 mL instead, the same dose sits at 10.2 units. |
| 5 mg vial, dose 6 mg, land it on 10 units, U-100 syringe | No number shown | The dose is larger than the whole vial. Check the units (mg or mcg). |
| Inputs | Result | Also shown |
|---|
| old vial 2.5 mg/mL, 20 units, new vial 5 mg/mL | 10 units | 20 units of the 2.5 mg/mL vial holds 0.5 mg. At 5 mg/mL, 0.5 mg is 0.1 mL, which is 10 units on a U-100 syringe. |
| old vial 2.5 mg/mL, 20 units, new vial 10 mg/mL | Check first | The new vial is 4 times stronger than the old one. Changes this large are where the worst mix-ups happen. Ask your pharmacist to confirm the new strength, then tick the box above. |
| old vial 2.5 mg/mL, 20 units, new vial 10 mg/mL, pharmacist confirmed | 5 units | 20 units of the 2.5 mg/mL vial holds 0.5 mg. At 10 mg/mL, 0.5 mg is 0.05 mL, which is 5 units on a U-100 syringe. |
| old vial 2.5 mg/mL, 300 units, new vial 2.5 mg/mL | Do not draw | More than 100 units is more than a 1 mL U-100 syringe holds. Check the number you were drawing. |
| old vial 0.5 mg/mL, 10 units, new vial 10 mg/mL | Do not draw | On the new vial that would be under 2 units, too small to measure safely. Ask your pharmacist how to measure it. |
| Inputs | Result | Also shown |
|---|
| compounded vial labeled semaglutide, 2.5 mg/mL typed twice, dose 0.25 mg, U-100 0.5 mL syringe | 10 units | 0.25 mg at 2.5 mg per mL is 0.1 mL, which is 10 units on a U-100 syringe. |
| compounded vial labeled tirzepatide, 10 mg/mL typed twice, dose 5 mg, U-100 1 mL syringe | 50 units | 5 mg at 10 mg per mL is 0.5 mL, which is 50 units on a U-100 syringe. |
| compounded vial labeled semaglutide sodium or acetate | Do not draw | FDA says semaglutide sodium and semaglutide acetate are not the same active ingredient as the approved drug and should not be used. Talk to your prescriber before using this vial. |
| compounded vial labeled "research use only" | Do not draw | A vial labeled "research use only" or "not for human consumption" is not a prescription medicine. Nobody has checked what is in it. Talk to your prescriber. |
| compounded vial labeled semaglutide, 2.5 mg/mL, then 25 mg/mL | Do not draw | The two strengths you typed do not match. Read the mg per mL on the vial label again, then type it the same way twice. |
| compounded vial labeled semaglutide, 10 mg/mL typed twice, dose 8 mg | Do not draw | 8 mg is more than the highest dose on the Wegovy HD label (7.2 mg). Check that the dose is in mg and that you typed the dose from your vial prescription. |
| compounded vial labeled tirzepatide, 20 mg/mL typed twice, dose 16 mg | Do not draw | 16 mg is more than the highest dose on the Zepbound and Mounjaro label (15 mg). Check that the dose is in mg and that you typed the dose from your vial prescription. |
| compounded vial labeled semaglutide, 2.5 mg/mL typed twice, dose 3 mg | Do not draw | That works out to 1.2 mL, more than a 1 mL syringe holds. Check the strength is per mL, not for the whole vial, and ask your pharmacist. |
| compounded vial labeled tirzepatide, 10 mg/mL typed twice, dose 0.01 mg | Do not draw | That is under 2 units (0.001 mL), too small to measure safely. Check the dose is in mg, not mcg, and ask your pharmacist. |
| compounded vial labeled semaglutide, 2.5 mg/mL typed twice, dose 1.7 mg, U-100 0.5 mL syringe | Do not draw | This dose will not fit the syringe you picked. Use the syringe your pharmacy supplied, or ask your pharmacist. Do not split a dose without asking. |
| Inputs | Result | Also shown |
|---|
| Zepbound or Mounjaro single-dose vial | Whole vial | Nothing to calculate |
| Zepbound or Mounjaro multi-dose vial | 0.6 mL | A fixed amount |
| Inputs | Result | Also shown |
|---|
| 180 lb, strength training | 130–180 g a day | About 20 g per meal, spread over 3 to 5 meals. |
| 80 kg, little or no exercise | 65 g a day | About 20 g per meal, spread over 3 to 5 meals. |
When a calculator refuses to answer
A wrong number on a screen looks like an instruction. FDA has reported people taking 5 to 20 times their dose after mixing up mg, mcg, mL and units with compounded GLP-1 vials (FDA alert, July 2024). So for each case below the calculator shows no number at all.
- More than 1 mL. Too much for a 1 mL syringe, and usually a sign that a strength was entered for the whole vial instead of per mL, or a dose in mg instead of mcg.
- Under 2 units (0.02 mL on a U-100 syringe). Studies found draws that small too inaccurate to measure on an insulin syringe: see how accurate insulin syringes are at small doses. It is also what a dose typed in mcg instead of mg looks like.
- More than the syringe holds. One fill has to hold the whole dose. A larger syringe, less water or a split dose is a choice for you and your pharmacist, not the calculator.
- More than the vial holds. A dose larger than the whole vial almost always means mg and mcg were swapped.
- Above the highest dose on the label, for the two compounds with a labeled top dose: semaglutide 7.2 mg (Wegovy HD); tirzepatide 15 mg (Zepbound and Mounjaro). Anything above it is far more likely a mix-up than a real prescription.
- Pen to vial only: a label naming a salt form (semaglutide sodium or acetate, which FDA says is not the approved drug), a vial labeled "research use only", or two strengths that do not match.
- Same dose, new vial: a strength change of more than twofold shows "Check first" until you tick that your pharmacist confirmed it.
- BAC water: a dose larger than the vial, or a line past the end of the syringe, gets a note instead of an amount of water.
What the screen shows: the big number reads Do not draw under the label "Check your numbers", the syringe drawing stays empty, and a note says what to check (the units, the label strength, the syringe) and to ask your pharmacist. No number appears that could be read or screenshotted as an instruction.
How it is tested
- Calculator validation test (
tools/calcval_test.js): types all 60 worked cases on this page into the live calculators and fails if any published result differs. It also proves it catches a wrong published number. - Safety test (
tools/safety_test.js): 37 hard-stop and normal cases on the peptide calculator, the compound calculators, same dose new vial and pen to vial. It checks that a refusal shows Do not draw, no number and an empty syringe, that GLP-1 pages offer no U-40 syringe, and that unapproved compounds never say "prescribed". - Embed test (
tools/embed_test.js): 12 cases on the calculator other sites embed, with the same stops, plus its link back and that it loads nothing from third parties. - The app's parity tests: the website's own calculator code runs against the app's on 978 inputs, and the supply planner and step-up schedule on 160 more, so the site and the app cannot drift apart. Independent tests recompute every number from first principles over thousands of generated cases. 42 dose math tests in all (calc.test.ts, parity.test.ts, protein.test.ts, tools.parity.test.ts, verify.test.ts).
- The gate (
tools/gate.py): before any change is merged it builds the site, runs check.py on every page and runs the browser tests for whatever the change can affect. - Cloudflare will not publish a failing build. Every push runs
build.py and check.py. If check.py fails, nothing is published and the last good version stays live. It also fails when the calculator code changed after the cases on this page were made, until they are made again.
Rounding and display
- On a line or between lines. A U-100 0.3 mL or 0.5 mL syringe is marked every unit, a U-100 1 mL syringe every 2 units, a U-40 syringe every unit and a syringe marked in mL every 0.01 mL. Within 0.05 units of a mark, the draw is that mark and shows as a whole number. Between marks it shows one decimal (two when one decimal would look like a mark), with a note that it cannot be read exactly and what each nearby line delivers.
- Units or mL. On U-100 and U-40 syringes the answer is in units, with the volume in mL underneath. A U-100 unit is 0.01 mL and a U-40 unit is 0.025 mL, so the same volume reads 2.5 times higher on U-100. The calculators never suggest switching between U-100 and U-40. A syringe marked in mL shows mL: 2 decimals on a mark, 3 or 4 between.
- Other numbers. Volume shows up to 3 decimals and water to add up to 2. Amounts keep the precision you enter (up to 4 decimals in mg, 2 in mcg). Doses in a vial round down, and vials needed round up. Protein rounds to the nearest 5 g.
- Small tolerances. A stop allows for tiny rounding: over the syringe means more than 0.05 units past its end, and over the vial or over the label means more than 0.01% above it.
What the calculators cannot know
- The real strength of a research vial. The calculator trusts the amount you type. A vial sold "for research use" has no checked label, and its contents may differ from it. See peptide purity: what to check and ask.
- Net peptide content. The weight on a research vial can include salts and water as well as the peptide, so the peptide in it can be less than the number on the label.
- Syringe dead space. Some liquid stays in the needle and hub. The calculator gives the line on the barrel, not what leaves the needle.
- Your technique. Air bubbles, reading the line at an angle, water added wrong or the wrong syringe all change what you draw. See reading syringe units, U-40 vs U-100 syringes and units vs mg: the common mistakes.
- Whether a dose is right for you. Apart from the top labeled dose for semaglutide and tirzepatide, no calculator checks a dose. That is for your prescriber and pharmacist.
Found a result that looks wrong? Email [email protected] with the inputs, and read how we work.
Sources: FDA: dosing errors with compounded semaglutide (July 2024); FDA: concerns with unapproved GLP-1 drugs used for weight loss; University of Minnesota: Clinical Procedures for Safer Patient Care, insulin syringes; DailyMed: Zepbound (tirzepatide) label, 2026.
For research and educational use. Not medical advice. Confirm every calculation and dose with a licensed professional.