How the Calculations Work

Every result on this site is plain arithmetic on the numbers you type, and you can check each step. Below are the peptide calculator formulas, rounding rules and test cases.

Definitions

A syringe unit is a volume mark, not an amount of substance. U-100 insulin has 100 units in 1 mL 1, and your syringe should match the vial concentration 2.

U-40 means 40 units per mL for that labeled product, and its label says to use a matching U-40 syringe 3. Barrel marks are covered in how to read an insulin syringe.

A milligram is 1000 micrograms, and a milliliter is 1000 microliters 4. An International Unit is an activity value set against a standard 5.

FDA reports mix-ups when a per mL strength was mistaken for the total amount in the container 6. So the site keeps strength per container and strength per mL as different fields.

Formulas

Concentration equals vial mg divided by liquid mL. Volume equals amount divided by concentration, and units equal volume times units per mL.

The reverse calculator solves for liquid: vial divided by amount, multiplied by target units divided by units per mL. Conversions between units, mL and mg use the label concentration, as in the reconstitution calculator and the units to mg converter.

For blends, the engine multiplies each component amount in the vial by draw mL divided by total liquid mL. For run-out, it counts whole draws left from the remaining amount. It places them on your schedule in whole days, so time zones do not shift the result.

Why exact fractions

The JavaScript Number type is IEEE 754 binary64 floating point 7, so many decimals cannot be stored exactly. So the engine uses exact fractions built from integers, and one third of a mL stays one third.

Rounding

Displayed values are rounded by display rules, not by the stored value. Units are shown to the syringe's printed line step, mL to 0.01, and mg to 3 or 4 places.

A shown value that differs from the exact one is marked about. If a result falls between two printed lines, the page says between and does not invent a fraction.

Warnings that ask you to check a number

In the cases below, the page asks you to look at an entry again. These are checks, not advice about your number.

Warning codeWhen it appearsMessage the person sees
OVER_SYRINGEDraw is larger than the barrel (60 units on a 30 unit syringe)That is 60 units. This syringe holds 30. It fits on a U-100 1 mL (100 units) syringe. Check your entries or pick a larger syringe.
UNDER_ONE_UNITDraw is under one unit (0.4 units)That is under 1 unit, less than one mark on this syringe. The syringe cannot show it. Check mg and mcg.
OVER_VIALAmount is larger than the whole vial (20 mg from 10 mg)That is more than the whole vial. Check mg and mcg.
CONCENTRATION_TOO_HIGHStrength above 100 mg/mL (150 mg/mL)150 mg/mL is unusually strong. Check the vial amount and the liquid added.
CONCENTRATION_TOO_LOWStrength below 0.01 mg/mL (0.005 mg/mL)0.005 mg/mL is unusually weak. Check the vial amount and the liquid added.
UNIT_SWITCHMass unit changed from mg to mcgYou changed mg to mcg. 500 mcg is 0.5 mg. Is that the amount you mean?
SYRINGE_TYPE_SWITCHSyringe scale changed from U-100 to U-40 (0.1 mL)The same 0.1 mL is 10 units on U-100 and 4 units on U-40. Which is printed on your syringe?
OFF_BY_10XNew amount is 10 times the last oneThis is 10 times higher than your last dose (500 mcg). Check mg and mcg and the decimal point.

Test vectors

A vector is a worked arithmetic fixture with generic labels such as vial A. The public table below lists 20 cases from the same fixtures the tests use.

Each case was worked out by hand as an exact fraction, and the engine matches all 20.

Example entries to show the math, not an amount to take.

CaseVial (mg)Liquid (mL)Amount typedSyringe (mL)Exact units, by handEngine units
C0152250 mcg11010
C02102500 mcg0.51010
C0321100 mcg0.355
C0453250 mcg11515
C05103500 mcg0.51515
C06103250 mcg0.315/27.5
C07152500 mcg120/320/3
C08153100 mcg0.322
C09301100 mcg0.31/31/3
C10301250 mcg15/65/6
C11151100 mcg0.52/32/3
C12302500 mcg0.310/310/3
C131012.5 mg0.32525
C141012500 mcg0.32525
C15512.5 mg0.35050
C16212.5 mg1125125
C1723250 mcg0.575/237.5
C183032.5 mg12525
C191020.5 mg0.51010
C201522.5 mg0.5100/3100/3

Exact results: 20 of 20.

Engine tests in the build run: 156 of 156 passed, run on Nov 2, 2026.

13 vectors, generated by running the engine. Download: vectors.json and vectors.csv.

IdCaseInputsOutputs
V01Whole units, mg enteredvial: 10 mg; liquid: 2 mL; amount: 0.5 mg; syringe: U100_1mg per mL: 5; mL to draw: 0.1; units: 10; units shown: 10; nearest mark: none (marks not set); full draws in vial: 20
V02Same amount entered in mcgvial: 10 mg; liquid: 2 mL; amount: 500 mcg; syringe: U100_1mg per mL: 5; mL to draw: 0.1; units: 10; units shown: 10; nearest mark: none (marks not set); full draws in vial: 20
V03Smaller barrelvial: 5 mg; liquid: 1 mL; amount: 0.25 mg; syringe: U100_0.5mg per mL: 5; mL to draw: 0.05; units: 5; units shown: 5; nearest mark: none (marks not set); full draws in vial: 20
V04Thirds stay exact (no float error)vial: 10 mg; liquid: 3 mL; amount: 1 mg; syringe: U100_1mg per mL: 10/3; mL to draw: 0.3; units: 30; units shown: 30; nearest mark: none (marks not set); full draws in vial: 10
V05Between two linesvial: 10 mg; liquid: 3 mL; amount: 0.5 mg; syringe: U100_1mg per mL: 10/3; mL to draw: 0.15; units: 15; units shown: 15; nearest mark: none (marks not set); full draws in vial: 20
V06U-40 syringe reads fewer units for the same mLvial: 10 mg; liquid: 2 mL; amount: 0.5 mg; syringe: U40_1mg per mL: 5; mL to draw: 0.1; units: 4; units shown: 4; nearest mark: none (marks not set); full draws in vial: 20
V07Over the barrel capacityvial: 10 mg; liquid: 2 mL; amount: 3 mg; syringe: U100_0.3mg per mL: 5; mL to draw: 0.6; units: 60; units shown: 60; nearest mark: none (marks not set); full draws in vial: 3 Warnings: OVER_SYRINGE.
V08Under one unitvial: 10 mg; liquid: 2 mL; amount: 0.02 mg; syringe: U100_1mg per mL: 5; mL to draw: 0.004; units: 0.4; units shown: 0.4; nearest mark: none (marks not set); full draws in vial: 500 Warnings: UNDER_ONE_UNIT.
V09More than the whole vialvial: 10 mg; liquid: 2 mL; amount: 20 mg; syringe: U100_1mg per mL: 5; mL to draw: 4; units: 400; units shown: 400; nearest mark: none (marks not set); full draws in vial: 0 Warnings: OVER_SYRINGE, OVER_VIAL.
V10Units to mg from the label strengthunits: 10; label strength: 5 mg/mL; syringe: U100_1mL: 0.1; mg: 0.5; mcg: 500
V11mg to units from the label strengthamount: 0.5 mg; label strength: 5 mg/mL; syringe: U100_1units: 10; mL: 0.1
V12Work backwards from the units you want to readvial: 10 mg; amount: 0.5 mg; units to read: 10; syringe: U100_1liquid mL: 2; mg per mL: 5
V13Liquid for a target strengthvial: 10 mg; strength: 5 mg/mLliquid mL: 2

What the engine does not do

The engine does not suggest amounts, list substances or load presets. You supply every number.

It runs in your browser. To compare tools, see what to check in any calculator.

Version and changes

This page matches the current engine version. The changelog lists changes to formulas, warnings and tests.

Engine version 0.1.0 (source hash d1ed52fb). Last test run: Nov 2, 2026, 156 of 156 tests passed. This line is written by the site build from a real run of the engine tests.

Report a math error

To report a math problem, write to support@peptidedosetracker.com with the numbers you typed and the result you saw. Corrections are dated in the corrections log.

Try the live math in Open the reconstitution calculator, or inspect the fixtures in Download the test vectors (JSON).

Read this first. Math based on your entries. This page describes arithmetic on the numbers you type. It does not recommend an amount, a schedule or a product. Check every result against your label and talk to your prescriber or pharmacist. 18+.

Editorial review against cited sources. Last checked Oct 12, 2026.

Sources

  1. MedlinePlus: Giving an insulin injection (opens in a new tab), MedlinePlus, U.S. National Library of Medicine (NIH). Reviewed 07/21/2024.
  2. ADA: Overview of Insulin Concentration for School Nurses (opens in a new tab), American Diabetes Association. August 2022.
  3. DailyMed: veterinary U-40 insulin label (opens in a new tab), Merck Animal Health, FDA-approved veterinary label, hosted by DailyMed (U.S. National Library of Medicine). Revised 09/2026 (DailyMed effective 09/23/2026).
  4. NIST: Metric (SI) prefixes (opens in a new tab), National Institute of Standards and Technology (NIST). Page undated, read 10/12/2026.
  5. WHO: Technical Report Series 932, Annex 2 (opens in a new tab), World Health Organization. 2006 (text revised 2004).
  6. FDA: strength on compounder and manufacturer labels (opens in a new tab), U.S. Food and Drug Administration. Published 09/24/2018; updated 05/21/2024; content current as of 06/17/2024.
  7. ECMAScript specification: Number type (opens in a new tab), Ecma International TC39 (draft living standard). Living standard, read 10/12/2026.