Formula: TyG Index & Atherogenic AIP Formula
- fastingTriglyceridesMgDl: Fasting Triglycerides (mg/dL)
- fastingGlucoseMgDl: Fasting Glucose (mg/dL)
- hdlCholesterolMgDl: Hdl Cholesterol (mg/dL)
Evaluate cardiometabolic insulin sensitivity via TyG Index, TG/HDL ratio, and AIP.
The division by 2 is part of how the index was originally defined, not something the calculator adds. It shifts every TyG result down by the same amount, about 0.69, so it does not change how two results compare. If you leave it out, your hand calculation will come out roughly 0.69 higher than the 8.85 shown for the default panel.
No. Each box expects mg/dL, and the page refuses values outside its mg/dL ranges with a message showing the conversion. Multiply triglycerides by 88.57, glucose by 18 and HDL by 38.67 first. A fasting panel of 1.64, 5.3 and 1.24 mmol/L becomes about 145, 96 and 48 mg/dL, the same as the default.
No. TyG uses only triglycerides and glucose, and both lipid ratios use only triglycerides and HDL. LDL, total cholesterol and non HDL cholesterol are not inputs. That is one reason these markers are used alongside a standard cholesterol assessment rather than instead of it. Ask your clinician how they fit with the rest of your lipid results.
AIP is a logarithm, so it is negative whenever the mmol/L ratio of triglycerides to HDL is below 1. With the default glucose and HDL, lowering triglycerides to 87 mg/dL gives an AIP of minus 0.1. A negative value is not an error. It simply means HDL is high relative to triglycerides on a molar basis. Many healthy panels give a negative AIP.
Yes. HDL is not part of the TyG formula. Raising HDL from 48 to 60 mg/dL with the other defaults leaves TyG at 8.85 but drops the TG to HDL ratio to 2.42 and AIP to 0.02. Watching which outputs move tells you which input changed between two tests.
The page cannot tell you that. It labels values below 8.5 as optimal for context, but published cutoffs vary by population and purpose. TyG is a screening style marker, not a test for insulin resistance or diabetes. Discuss the result with your clinician, who can combine it with HbA1c, fasting insulin if measured, and your history. No single number can do that.
The formulas will run, but the result is harder to interpret. Triglycerides and glucose both rise after eating, so a non fasting panel usually gives a higher TyG and AIP than a fasting one from the same person. If your report does not say fasting, mention that when you discuss the numbers, and compare only like with like over time.
Both TyG and AIP are logarithms. Doubling any input to a natural log adds about 0.69, and doubling the input to a base 10 log adds about 0.30. So going from 50 to 100 mg/dL moves the scores exactly as much as going from 40 to 80 would. Absolute changes matter less than proportional ones.
Check the units. This page gives the ratio in mg/dL, where the default is 3.02. Papers from countries using mmol/L report a ratio about 2.29 times smaller for the same blood, so the default would appear as roughly 1.32. Cutoffs from one convention cannot be applied to the other without converting.
No. The page summarises lab values; it does not weigh your overall risk or suggest treatment. Changes to diet, supplements or medicine should come from a conversation with your clinician, who can look at the full lipid panel, blood pressure, glucose history and other factors that these three ratios leave out.
Usually because triglycerides moved. Both inputs carry equal proportional weight in the formula, but fasting triglycerides vary far more between tests than fasting glucose. Moving triglycerides from 87 to 218 mg/dL with glucose held at 96 shifts TyG from 8.34 to 9.26. Check both values and the fasting status before comparing two results.
All three numbers on this page come from a standard fasting lipid panel plus a fasting glucose. You need only triglycerides, glucose and HDL cholesterol. LDL and total cholesterol are not used.
The headline is the triglyceride glucose index, usually shortened to TyG. Researchers use it as a cheap stand in for insulin resistance, because high fasting triglycerides and high fasting glucose tend to travel together when the body handles insulin poorly. Below it sit two lipid ratios: triglycerides divided by HDL, and the Atherogenic Index of Plasma, which is the base 10 logarithm of that same ratio once both values are expressed in mmol/L.
None of these is a diagnosis. They are research markers that summarise a blood test in a single figure, and the cutoffs quoted for them differ from study to study and population to population. The page is useful for seeing how your numbers fit together and how they change over time. What they mean for you is a question for the clinician who ordered the test.
The default inputs are triglycerides of 145 mg/dL, glucose of 96 mg/dL and HDL of 48 mg/dL, all fasting.
For TyG, multiply triglycerides by glucose and halve the result. That gives 6,960, which the page shows as a supporting line. The natural logarithm of 6,960 is 8.85, the headline TyG value.
The TG to HDL ratio is simply 145 divided by 48, which is 3.02. The page compares it with an optimal value below 2.0 in the interpretation sentence.
AIP takes one more step. Triglycerides are converted to mmol/L by dividing by 88.57, giving about 1.64. HDL is converted by dividing by 38.67, giving about 1.24. Their ratio is about 1.32, and the base 10 logarithm of 1.32 is 0.12. That matches the AIP line on screen.
Every one of these steps can be done on a phone calculator. If your own panel gives a different answer from the page, the most likely cause is a unit mix up, which the next sections cover.
People who check the maths by hand often take the log of the on screen TG to HDL ratio and get about 0.48, not 0.12. Both numbers are correct for what they describe, and the difference is units.
The TG to HDL ratio on this page is calculated in mg/dL. AIP was defined using mmol/L. Triglyceride and cholesterol molecules have different molar masses, so converting each to mmol/L uses a different factor: 88.57 for triglycerides and 38.67 for HDL. Dividing those factors gives about 2.29, which means the mmol/L ratio is always the mg/dL ratio divided by 2.29.
In the default, 3.02 divided by 2.29 is about 1.32, and log10 of that is 0.12. The page does this conversion for you, so you can enter everything in mg/dL and still get AIP on its original scale.
The practical point: if a paper or a lab report quotes a TG to HDL ratio, check which units it used before comparing it with the 3.02 here. A mmol/L ratio of 1.32 and a mg/dL ratio of 3.02 describe the same blood.
Triglycerides are the only input that touches all three outputs. Lowering them from 145 to 87 mg/dL moves TyG from 8.85 to 8.34, the ratio from 3.02 to 1.81, and AIP from 0.12 to minus 0.1. Raising them to 218 mg/dL gives a TyG of 9.26, a ratio of 4.54 and an AIP of 0.3.
Because TyG and AIP are logarithms, they respond to proportional changes rather than absolute ones. Doubling triglycerides always adds about 0.69 to TyG and about 0.30 to AIP, wherever you start. A drop of 20 mg/dL matters more on a low baseline than on a high one.
Glucose only affects TyG. HDL only affects the ratio and AIP. Raise HDL from 48 to 60 mg/dL with everything else at default and TyG stays at 8.85, while the ratio falls to 2.42 and AIP to 0.02. Lower HDL to 35 and the ratio climbs to 4.14 with AIP at 0.26.
This separation helps when you are comparing two tests. If TyG moved but AIP did not, the change was in glucose. If AIP moved but TyG did not, look at HDL.
The three boxes accept mg/dL only. There is no unit switch, so a panel reported in mmol/L, as it is in the UK, Europe, Australia and many other places, has to be converted first.
The page checks each value against a plausible mg/dL range and stops with a message if it is outside. Triglycerides must be at least 20 mg/dL, glucose at least 40 mg/dL and HDL at least 10 mg/dL, and each has an upper limit set well above a realistic fasting result. Each message gives the conversion factor, so a triglyceride typed as 1.64 is refused rather than quietly turned into a misleading result.
To convert, multiply triglycerides in mmol/L by 88.57, glucose by 18, and HDL by 38.67. A panel of 1.64, 5.3 and 1.24 mmol/L becomes roughly 145, 96 and 48 mg/dL, which is the default and gives a TyG of 8.85.
The range checks catch values that are clearly in the wrong unit, but they cannot catch every slip. A glucose typed as 96 when the report actually said 9.6 mmol/L would pass. Read the unit column on the report each time, especially if you are entering results from two different labs.
TyG was built for fasting samples, and triglycerides are the part most sensitive to a recent meal. A non fasting triglyceride can be noticeably higher than a fasting one from the same person, and glucose after food is higher too. Feeding a non fasting panel into this page will usually push TyG and AIP upward.
Check the report for a fasting flag or the time since the last meal. If you are comparing two panels, compare like with like: two fasting samples, taken at a similar time of day, ideally on the same lab.
Short term factors can also move triglycerides from one week to the next, including alcohol, recent illness and some medicines. A single result that jumps from the default 145 to 218 mg/dL is worth noting, but a pattern across several tests says far more. Your clinician can tell you whether a repeat test makes sense.
The sentence under the result quotes an optimal TyG below 8.5 and an optimal TG to HDL ratio below 2.0. These are reference points the page uses for context, not diagnostic thresholds. Studies of TyG have used a range of cutoffs, and they differ by age, sex, ethnicity and the outcome being studied.
In the default case TyG is 8.85 and the ratio is 3.02, so both sit above those markers. In the lower triglyceride scenario TyG is 8.34 and the ratio is 1.81, so both sit below. The headline does not change colour or wording in a way that should be read as a verdict.
AIP gets no optimal marker on the page. You will see AIP bands quoted elsewhere, but again they vary. The safest use of these figures is relative: is my number moving in the right direction between tests? If you want to know what your values mean for heart or diabetes risk, a clinician can put them alongside blood pressure, family history, waist size, HbA1c and the rest of the picture.
Glucose and triglycerides sit side by side inside the same logarithm, so in TyG they carry equal weight in proportional terms. A 10 percent rise in glucose moves TyG by exactly as much as a 10 percent rise in triglycerides, about 0.095.
In practice, though, fasting glucose varies much less than fasting triglycerides. A typical adult's fasting glucose might drift by a few percent between tests, while triglycerides can swing by 30 or 40 percent. That means most of the movement you see in TyG from one panel to the next is usually driven by triglycerides.
You can see this on the page. Holding glucose at 96 mg/dL, moving triglycerides from 87 to 218 mg/dL takes TyG from 8.34 to 9.26, almost a full point. It would take a far larger change in glucose to do the same.
If your TyG has risen and your triglycerides have not, look at the glucose figure and whether both samples were truly fasting. Either way, a change worth acting on is one for your clinician to interpret.
A simple routine is to enter each new fasting panel and record the three outputs in a notebook or spreadsheet next to the date. Over a year or two you get a trend that is easier to follow than the raw lab values.
Because TyG and AIP are logarithms, a change of a tenth or two can reflect a fairly large shift in triglycerides. A move from 8.85 to 8.34 corresponds to triglycerides falling by about 40 percent with glucose unchanged.
Do not use the page to adjust diet plans, supplements or medication on your own. Bring the trend to your clinician. They can judge whether a change is meaningful, whether it reflects fasting differences or lab variation, and what, if anything, should follow.