HomeLab, Chemistry & Measurement ToolsDry Matter Calculator with Steps (Free) | StatsUnlock

Dry Matter Calculator with Steps (Free) | StatsUnlock

Dry Matter Calculator

Convert dog food and cat food labels to a dry matter basis with calories and per-1000-kcal values, convert any feed between as fed and dry matter, measure dry matter content by drying, plan cattle dry matter intake and rations, calculate fat in dry matter for cheese, and compare two foods, with every step, a figure and four charts.

LabAnimal NutritionPet FoodStep by StepAs Fed ↔ Dry MatterCattleCheeseFree

⚡ 0. Quick Answer

A dry matter calculator uses dry matter % = 100 − moisture % and nutrient on a dry matter basis = as-fed % ÷ dry matter % × 100. A canned dog food with 78% moisture and 8% protein has 22% dry matter, so its protein is 8 ÷ 22 × 100 = 36.4% on a dry matter basis, more than many dry kibbles.

DM = 100 − moisture  ·  DMB = as fed ÷ DM × 100  ·  as fed = DMB × DM ÷ 100  ·  FDM = fat ÷ (100 − moisture) × 100

Rule of thumb: never compare wet and dry foods on the label numbers. Convert both to a dry matter basis, or better, to grams per 1000 kcal. For livestock, mix as fed but balance on a dry matter basis.

⭐ Key Takeaways

  • A dry matter calculator turns 8% protein at 78% moisture into 36.4% protein on a dry matter basis (22% dry matter).
  • A dry cat food at 10% moisture and 32% protein is 35.6% protein on a dry matter basis: almost the same as the canned dog food.
  • Hay at 88% DM with 16% crude protein as fed is 18.2% CP on a dry matter basis; 10 kg as fed is 8.8 kg of dry matter.
  • A 600 kg cow eating 3.5% of body weight as dry matter needs 21 kg DM, which is 46.7 kg of a 45% DM feed.
  • Cheese with 33% fat and 37% moisture has 52.4% fat in dry matter: full fat under the Codex standard.

📚 1. What Is Dry Matter and How Do You Calculate It?

Dry matter is everything in a food or feed except water: protein, fat, carbohydrate, fiber and minerals. Because water content varies so much (about 10% in kibble, 75 to 82% in canned food, 30 to 40% DM in silage), nutrients are compared and requirements are set on a dry matter basis. Nutrient requirement tables for dogs and cats (NRC, 2006) and for beef and dairy cattle (NASEM, 2016; NASEM, 2021) are written this way. A dry matter calculator removes the water so that a wet food and a dry food, or two feeds, can be compared fairly.

A worked one-liner: DM = 100 − 78 = 22%; protein DMB = 8 ÷ 22 × 100 = 36.4%; fat DMB = 5 ÷ 22 × 100 = 22.7%; energy ≈ 10 × (3.5 × 8 + 8.5 × 5 + 3.5 × 5) = 880 kcal/kg as fed = 4000 kcal/kg DM.

Who uses it: pet owners and veterinary teams comparing dog and cat foods, including phosphorus for kidney diets; animal science students; nutritionists and farmers balancing cattle rations; feed and forage labs reporting results; and dairy technologists calculating fat in dry matter for cheese labeling.

Quick answers to the questions people ask most

How do you calculate dry matter basis?

Subtract the moisture percentage from 100 to get the dry matter percentage, then divide each as-fed nutrient by the dry matter and multiply by 100. A food with 78% moisture and 8% protein has 22% dry matter, so its protein on a dry matter basis is 8 ÷ 22 × 100 = 36.4%.

How do you calculate dry matter basis of dog food?

Read the guaranteed analysis on the bag or can. Dry matter is 100 minus the moisture maximum. Divide protein, fat and fiber by the dry matter and multiply by 100. A kibble with 10% moisture and 26% protein is 28.9% protein on a dry matter basis; a can with 78% moisture and 9% protein is 40.9%.

How do you calculate dry matter basis of cat food?

Use the same steps as for dog food. A wet cat food at 82% moisture and 10% protein has 18% dry matter and 55.6% protein on a dry matter basis. A dry cat food at 10% moisture and 32% protein has 90% dry matter and 35.6% protein. The wet food carries more protein once water is removed.

How do you convert dry matter to as fed?

Multiply the dry matter value by the dry matter percentage and divide by 100. Silage at 35% dry matter with 8.5% crude protein in the dry matter contains 8.5 × 35 ÷ 100 = 2.98% protein as fed. To feed 12 kg of dry matter, offer 12 ÷ 0.35 = 34.3 kg as fed.

How do you calculate dry matter percentage of a feed sample?

Weigh the sample, dry it in an oven or microwave to constant mass, and weigh it again. Dry matter % = dry mass ÷ wet mass × 100, after subtracting the container. A 100 g silage sample that dries to 35 g has 35% dry matter and 65% moisture.

How do you calculate fat in dry matter for cheese?

Divide the fat percentage by the dry matter percentage (100 minus moisture) and multiply by 100. Cheese with 33% fat and 37% moisture has 63% dry matter and 52.4% fat in dry matter, which is full fat (45 to 60%) under the Codex General Standard for Cheese.

Bench note from the StatsUnlock Team: the most common error we see is comparing a canned food’s 8% protein with a kibble’s 26% and concluding the can is low in protein; on a dry matter basis it is higher. The second is forgetting that label figures are guarantees (minimum protein and fat, maximum fiber and moisture), not exact analyses; measured values often differ (Hill et al., 2009). For livestock, the trap is wet feed: silage dry matter drifts, and every nutrient drifts with it (St-Pierre & Weiss, 2015).
How a dry matter calculator compares a wet and a dry food Canned food: 8 percent protein as fed, 36.4 percent on a dry matter basis. Dry food: 26 percent as fed, 28.9 percent on a dry matter basis. 8% 36.4% 26% 28.9% canned, as fedcanned, DM kibble, as fedkibble, DM Protein: canned food (78% moisture) vs kibble (10% moisture)
On the label the canned food looks far lower in protein; with the water removed it is higher.
Food or feedTypical moistureDry matter8% as fed becomes
Dry kibble8 to 12%88 to 92%8.7 to 9.1% DM
Semi-moist pet foodabout 25 to 35%65 to 75%10.7 to 12.3% DM
Canned pet food75 to 82%18 to 25%32 to 44% DM
Hay10 to 15%85 to 90%8.9 to 9.4% DM
Corn silage60 to 70%30 to 40%20 to 27% DM
Fresh pasture75 to 85%15 to 25%32 to 53% DM

🧮 2. Enter Your Data

Values from the guaranteed analysis, as printed. Ash is often listed in the typical analysis or on the maker’s website.

📊 3. Results and Step-by-Step Working

Load a sample or enter your data above, then press Calculate Dry Matter. The dry matter basis values, energy, the formula, every step, a figure, four charts and the exports will appear here.

🧠 4. Understanding Your Dry Matter Result, In Detail

4.1 What the result means

___

4.2 The formula

___

4.3 The detail that changes the answer

___

4.4 Accuracy and limits

___

4.5 What to do next

___

4.6 Dry matter basis or per 1000 kcal?

A dry matter basis removes water, which is enough to compare most feeds. Pet foods also differ widely in fat and therefore in energy, and an animal eats to meet its energy needs. Expressing a nutrient as grams per 1000 kcal shows how much of it arrives with each day’s calories. AAFCO’s dry matter minimums assume 4000 kcal per kg of dry matter, so for very high-fat foods the per-1000-kcal comparison is the more reliable one. Energy here uses modified Atwater factors (3.5, 8.5 and 3.5 kcal/g for protein, fat and carbohydrate), which predict measured metabolizable energy well on average but can underestimate high-quality diets (Hall et al., 2013; Asaro et al., 2017).

4.7 Why label numbers are not analyses

The guaranteed analysis lists minimum crude protein and fat and maximum fiber and moisture. Measured contents often exceed the protein and fat minimums and can fall short of other claims (Hill et al., 2009; Gosper et al., 2016). Carbohydrate is rarely printed and is calculated by difference, so it carries all the other errors. Ask the manufacturer for typical (average) analyses and calorie content when precision matters (Zicker, 2008).

4.8 Measuring dry matter in feeds

Dry matter is measured by drying to constant mass, but the method matters: fermented feeds such as silage lose volatile acids and alcohols, so oven dry matter can understate true dry matter (Thiex & Richardson, 2003). On farms, the dry matter of wet ingredients varies enough from day to day that frequent checks pay off (St-Pierre & Weiss, 2015).

✍ 5. How to Write Dry Matter Results in a Report: Detailed Results

A nutrient value in a report needs the number, the basis (as fed, dry matter or per 1000 kcal), the source (label guarantee, typical analysis or laboratory analysis) and the dry matter used. The seven write-ups below are filled from the dry matter calculator; they show the headline example until you press Calculate.

Showing the headline example (canned dog food). Press Calculate above to fill all seven write-ups with your own result.

5.1 Style rules

RuleWriteAvoid
State the basis36.4% crude protein (DM basis)36.4% protein
Give the dry matter22% DM (78% moisture)no moisture stated
Name the sourcefrom the guaranteed analysis“the food contains”
Use per 1000 kcal for pets90.9 g protein/1000 kcal MEcomparing as-fed %
Rations on DM, mixing as fed13.3% CP of DM; 47 kg as fedmixing the two
Cheese: FDM with moisture52% fat in dry matter (37% moisture)52% fat

5.2 Seven ready-to-copy write-ups

1. Lab report or paper sentence
On a dry matter basis (22.0% dry matter), the dog food contained 36.4% crude protein, 22.7% crude fat, 6.8% crude fiber and 22.7% carbohydrate, with an estimated 880 kcal ME/kg as fed (modified Atwater).
2. Data sheet or log entry
Dog food on a dry matter basis (78% moisture) Dry matter: 22.00% Crude protein: 36.36% Crude fat: 22.73% Crude fiber: 6.82% Ash: 11.36% Carbohydrate (NFE): 22.73% Energy (modified Atwater): 880 kcal/kg as fed Calories from protein / fat / carbohydrate: 31.8% / 48.3% / 19.9% Phosphorus: 1.136% Calcium: 1.364% AAFCO minimum protein / fat: 18% / 5.5% DM Check: 36.3636% × 0.2200 = 8% as fed ✓
3. Code and spreadsheet formulas
Python: dmb = asfed / (100 - 78) * 100 R: dmb <- asfed / (100 - 78) * 100 Excel: =B2/(100-$A$2)*100 JavaScript: const dmb = asfed / (100 - 78) * 100;
4. Exam or homework answer, fully worked
Given: moisture 78%, protein 8%, fat 5%, fiber 1.5%, ash 2.5% (as fed) Required: Nutrients on a dry matter basis Equation: DMB % = as-fed % ÷ (100 − moisture %) × 100 Substitute: 8 ÷ 22 × 100 Solve: 36.4% protein · 22.7% fat (DM) Working: 1. Dry matter: 100 − 78% moisture = 22.00% 2. Protein, dry matter basis: 8 ÷ 22 × 100 = 36.36% 3. Fat, dry matter basis: 5 ÷ 22 × 100 = 22.73% 4. Fiber, dry matter basis: 1.5 ÷ 22 × 100 = 6.82% 5. Carbohydrate (NFE, by difference): 100 − 78 − 8 − 5 − 1.5 − 2.5 = 5.00% as fed = 22.73% DM 6. Energy (modified Atwater): 10 × (3.5 × 8 + 8.5 × 5 + 3.5 × 5.00) = 880 kcal/kg as fed (4,000 kcal/kg DM) 7. Per 1000 kcal: protein 8 × 10 ÷ 0.880 = 90.9 g/1000 kcal; fat 56.8 g/1000 kcal 8. AAFCO minimum (dog, adult maintenance): protein 36.4% ≥ 18% DM; fat 22.7% ≥ 5.5% DM 9. Check: 36.3636% × 0.2200 = 8% as fed ✓ Answer: 36.4% protein · 22.7% fat (DM)
5. Plain text for chat or a forum
Dog food on a dry matter basis (78% moisture) = 36.4% protein · 22.7% fat (DM) (Calories: 32% protein, 48% fat, 20% carbohydrate).
6. Detailed results paragraph
Results. Dog food on a dry matter basis (78% moisture) = 36.4% protein · 22.7% fat (DM). Dry matter 22.0% · carbohydrate 22.7% DM · 880 kcal/kg as fed (4,000 DM). Supporting values: Dry matter: 22.00%; Crude protein: 36.36%; Crude fat: 22.73%; Crude fiber: 6.82%; Ash: 11.36%; Carbohydrate (NFE): 22.73%; Energy (modified Atwater): 880 kcal/kg as fed; Calories from protein / fat / carbohydrate: 31.8% / 48.3% / 19.9%; Phosphorus: 1.136%; Calcium: 1.364%; AAFCO minimum protein / fat: 18% / 5.5% DM. Check: 36.3636% × 0.2200 = 8% as fed ✓.
7. Results table (tab-separated, pastes into Excel or Word)
Quantity Value Note Dry matter 22.00% 100 − moisture Crude protein 36.36% 8% as fed · 90.9 g/1000 kcal Crude fat 22.73% 5% as fed · 56.8 g/1000 kcal Crude fiber 6.82% 1.5% as fed Ash 11.36% 2.5% as fed Carbohydrate (NFE) 22.73% 5.00% as fed Energy (modified Atwater) 880 kcal/kg as fed 4,000 kcal/kg DM Calories from protein / fat / carbohydrate 31.8% / 48.3% / 19.9% Phosphorus 1.136% 0.25% as fed · 2.84 g/1000 kcal Calcium 1.364% 0.3% as fed · 3.41 g/1000 kcal AAFCO minimum protein / fat 18% / 5.5% DM 45 / 13.75 g per 1000 kcal

∑ 6. What Is the Dry Matter Basis Calculation? All Formulas Used

①
Dry matter and dry matter basis
DM % = 100 − moisture %  ·  nutrient (DMB) = as-fed % ÷ DM % × 100
Example78% moisture, 8% protein: 8 ÷ 22 × 100 = 36.4% DMB
②
Dry matter to as fed, and amounts
as fed % = DMB % × DM % ÷ 100  ·  kg DM = kg as fed × DM % ÷ 100  ·  kg as fed = kg DM ÷ (DM % ÷ 100)
Example8.5% CP of DM at 35% DM = 2.98% as fed; 12 kg DM = 34.3 kg as fed
③
Carbohydrate by difference and energy
NFE = 100 − moisture − protein − fat − fiber − ash  ·  ME (kcal/kg) = 10 × (3.5P + 8.5F + 3.5NFE)
Per 1000 kcalg/1000 kcal = as-fed % × 10 ÷ (ME ÷ 1000)
Example10 × (28 + 42.5 + 17.5) = 880 kcal/kg; protein 80 ÷ 0.88 = 90.9 g/1000 kcal
④
Dry matter content by drying
DM % = (dry − container) ÷ (wet − container) × 100  ·  moisture % = 100 − DM %
Example(55 − 20) ÷ (120 − 20) × 100 = 35.0% DM
⑤
Cattle dry matter intake and rations
DMI = BW × DMI%  ·  as fed = DMI ÷ DM  ·  ration DM % = Σ(as fed × DM%) ÷ Σ as fed
Example600 × 3.5% = 21 kg DM ÷ 0.45 = 46.7 kg as fed
⑥
Cheese: fat in dry matter and MFFB
FDM = fat ÷ (100 − moisture) × 100  ·  MFFB = moisture ÷ (100 − fat) × 100
Example33% fat, 37% moisture: FDM 52.4% (full fat), MFFB 55.2%
⑦
Price on a dry matter basis
price per kg DM = price per kg as fed ÷ (DM % ÷ 100)  ·  price per 1000 kcal = price per kg ÷ (ME ÷ 1000)
Example4.00 per kg at 90% DM = 4.44 per kg DM

🔀 7. How Do You Calculate Dry Matter Basis? Flowchart, Step by Step

The same worked problem as Sections 0, 9, 10, 11 and 14: canned dog food, 78% moisture, 8% protein, 5% fat, 1.5% fiber, 2.5% ash.

Start or resultData stepCalculation stepYes or no check
StartGuaranteed analysismoisture 78, protein 8, fat 5, fiber 1.5, ash 2.5 (%)
CheckDo the values add to 100% or less?
Yes95% listed; 5% is carbohydrate.
NoA value is mistyped.
1
Dry matter100 − 7822%
2
Protein DMB8 ÷ 22 × 10036.4%
3
Fat DMB5 ÷ 22 × 10022.7%
4
Energy and per 1000 kcal880 kcal/kg as fed (4000 DM); protein 90.9 g/1000 kcal
CheckAbove AAFCO adult dog minimums (18% protein, 5.5% fat DM)?
Yes36.4% and 22.7%.
NoCheck per 1000 kcal and the life stage.
Result36.4% protein, 22.7% fat (DM basis)22% dry matter; 48% of calories from fat

📝 8. How to Use This Dry Matter Calculator

  1. Pick what you want to calculate. Choose a mode in Section 2: a dog or cat food label, as fed and dry matter conversion, dry matter content from drying, cattle intake and rations, cheese fat in dry matter, or a comparison of two foods.
  2. Load a sample or type your values. Twelve worked problems are in the sample menu. Sample 1 is the headline canned dog food. Nothing is calculated until you press Calculate Dry Matter.
  3. Copy the label exactly. Enter moisture, crude protein, crude fat, fiber and ash as printed in the guaranteed analysis. Add phosphorus, calcium or sodium on extra lines.
  4. Choose species and life stage. Dog or cat, adult or growth, sets the AAFCO protein and fat minimums used for the check.
  5. For feeds, enter dry matter or moisture. The convert mode takes either; add a feed amount in kg to convert masses as well as percentages.
  6. For cattle, enter body weight and intake. Use a target intake as % of body weight, or list ration ingredients with kg as fed, % DM, % crude protein and price.
  7. Press Calculate Dry Matter. Press the button or Enter. Dry matter basis values, energy, a Verified badge, the formula and every step appear in Section 3.
  8. Read the figure and charts. The figure draws your food as fed and on a dry matter basis; four charts show the bases, calories, sensitivity and benchmarks.
  9. Copy the write-up. Section 5 fills seven ready texts for a report, a log, code, an exam, chat, a results paragraph and a table.
  10. Download or run a batch. Download Doc or PDF, or convert many foods at once from a CSV of moisture and nutrient values in the Batch tab.

📈 9. How to Calculate Dry Matter Basis in Excel

One formula per nutrient. The sheet repeats the headline problem (canned dog food, 78% moisture, 8% protein, 5% fat), so the numbers match Sections 0, 7, 10, 11 and 14.

The whole thing in one cell: with moisture in A2 and protein in B2, type =B2/(100-A2)*100. It returns 36.36.

9.1 The formulas you need

You wantExcel formulaNote
Dry matter %=100-A2A2 = moisture
Nutrient, dry matter basis=B2/(100-$A$2)*100Fill right for each nutrient
Dry matter to as fed=C2*(100-$A$2)/100
Carbohydrate by difference=100-SUM(A2:E2)moisture, protein, fat, fiber, ash
Energy, kcal/kg (modified Atwater)=10*(3.5*B2+8.5*C2+3.5*F2)F2 = carbohydrate
Grams per 1000 kcal=B2*10/(G2/1000)G2 = kcal/kg
Ration dry matter %=SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4)kg as fed, % DM
As fed for a DM target=A2*B2/100/(C2/100)BW, DMI %, feed DM %
Cheese fat in dry matter=A2/(100-B2)*100fat, moisture

9.2 Step by step

1 Enter the label

Moisture in A2, protein in B2, fat in C2.

dry-matter.xlsxC2fx5ABC1MoistProtFat27885

A2 78, B2 8, C2 5.

2 Dry matter

In D2 type =100-A2.

dry-matter.xlsxD2fx=100-A2ABCD1MoistProtFatDM %2788522

D2 shows 22.

3 Dry matter basis

In E2 type =B2/$D$2*100 and fill right to F2.

dry-matter.xlsxE2fx=B2/$D$2*100ABCDEF1MoistProtFatDM %Prot DMFat DM278852236.3622.73

E2 36.36, F2 22.73.

9.3 Many foods

Put one food per row and fill the formulas down. Sort by the dry matter basis column, not the as-fed column, to rank foods by protein.

9.4 Why Excel may differ from R or Python

SituationWhat happensFix
Rounded dry matterRounding 22.4 to 22 changes every DMB valueRound only the final values
ROUNDExcel rounds half away from zero; R and Python round half to evenFormat instead of rounding
Percent formatTyping 78% stores 0.78Enter plain numbers or use =B2/(1-A2)

9.5 Charting

Select the as-fed and dry matter basis columns for several foods and insert a Clustered Column chart. The wet foods’ bars jump when water is removed.

9.6 Errors you may see

  • #DIV/0!: moisture entered as 100.
  • A value above 100%: dry matter typed where moisture was needed.
  • Numbers 100 times too small: cells formatted as percent.

📈 10. How to Calculate Dry Matter Basis in R

A complete, copy-and-run script that reproduces the dry matter calculator for the headline problem. It converts a canned dog food label to a dry matter basis with modified Atwater energy and per-1000-kcal values, converts feed between as fed and dry matter, plans a cattle ration, calculates cheese fat in dry matter and saves one 300 dpi figure.

No packages needed. Base R covers every step.

10.1 The complete script

R, base only, saves dry_matter_basis.png

# Dry matter calculator in base R (StatsUnlock)
dmb <- function(asfed, moisture) {               # % as fed -> % of dry matter
  if (any(moisture < 0 | moisture >= 100)) stop("moisture must be 0 to below 100")
  asfed / (100 - moisture) * 100
}
# headline: canned dog food, guaranteed analysis
lab <- c(moisture = 78, protein = 8, fat = 5, fiber = 1.5, ash = 2.5)
if (sum(lab) > 100) stop("label adds to more than 100 %")
nfe <- 100 - sum(lab)
dm <- round(dmb(c(lab[-1], nfe = nfe), lab["moisture"]), 2); print(dm)
me <- 10 * (3.5 * lab["protein"] + 8.5 * lab["fat"] + 3.5 * nfe)   # modified Atwater, kcal/kg
cat(sprintf("ME %.0f kcal/kg as fed (%.0f per kg DM); protein %.1f g/1000 kcal\n",
            me, me / 0.22, lab["protein"] * 10 / (me / 1000)))
# feed: hay at 88 % DM, 16 % CP as fed; silage 35 % DM, 8.5 % CP of DM
cat(sprintf("hay CP %.2f %% of DM; silage CP %.2f %% as fed\n", 16 / 0.88, 8.5 * 0.35))
# ration: kg as fed, % DM, % CP of DM
r <- data.frame(af = c(30, 8, 9), dm = c(35, 88, 89), cp = c(8, 18, 16))
kg_dm <- r$af * r$dm / 100
cat(sprintf("ration: %.2f kg DM, %.1f %% DM, %.1f %% CP of DM\n",
            sum(kg_dm), 100 * sum(kg_dm) / sum(r$af), sum(kg_dm * r$cp) / sum(kg_dm)))
# cheese: fat in dry matter and MFFB
fat <- 33; moist <- 37
cat(sprintf("FDM %.1f %%, MFFB %.1f %%\n", fat / (100 - moist) * 100, moist / (100 - fat) * 100))
png("dry_matter_basis.png", width = 7, height = 4, units = "in", res = 300)
barplot(rbind(c(8, 5, 5), c(dm["protein"], dm["fat"], dm["nfe"])), beside = TRUE,
        names.arg = c("protein", "fat", "carbohydrate"), col = c("grey70", "#9333ea"),
        legend.text = c("as fed", "dry matter basis"), ylab = "%")
invisible(dev.off())

10.2 Output

protein     fat   fiber     ash     nfe 
  36.36   22.73    6.82   11.36   22.73 
ME 880 kcal/kg as fed (4000 per kg DM); protein 90.9 g/1000 kcal
hay CP 18.18 % of DM; silage CP 2.97 % as fed
ration: 25.55 kg DM, 54.4 % DM, 13.3 % CP of DM
FDM 52.4 %, MFFB 55.2 %

10.3 Traps

  • dmb() is vectorized: pass a column of moistures and a column of nutrients.
  • Stop if the label adds to more than 100%.
  • Ration DM must be weighted by kg as fed.

10.4 What each part does

BlockPurpose
dmb()Checks that the label adds to 100% or less, then as fed ÷ DM fraction
EnergyModified Atwater 3.5, 8.5, 3.5 kcal/g and grams per 1000 kcal
Feeds and rationAs fed ↔ DM and a DM-weighted ration
Middle blocksHay and silage conversion, a three-ingredient ration and cheese fat in dry matter
Last blockProtein, fat and carbohydrate as fed against the dry matter basis, saved at 300 dpi

10.5 Adapting it

Change the label values for your food, or pass whole columns: dmb() is vectorized and works on a data frame of many foods at once.

📈 11. How to Calculate Dry Matter Basis in Python

A complete, copy-and-run script that reproduces the dry matter calculator for the headline problem. It converts a canned dog food label to a dry matter basis with modified Atwater energy and per-1000-kcal values, converts feed between as fed and dry matter, plans a cattle ration, calculates cheese fat in dry matter and saves one 300 dpi figure.

numpymatplotlib

Install once: pip install numpy matplotlib

11.1 The complete script

Python with NumPy and Matplotlib, saves dry_matter_basis.png

# Dry matter calculator in Python (StatsUnlock)
import numpy as np
import matplotlib.pyplot as plt

def dmb(asfed, moisture):
    """Nutrient % as fed -> % of dry matter."""
    asfed, moisture = np.asarray(asfed, float), np.asarray(moisture, float)
    if ((moisture < 0) | (moisture >= 100)).any():
        raise ValueError("moisture must be 0 to below 100")
    return asfed / (100 - moisture) * 100

lab = {"moisture": 78, "protein": 8, "fat": 5, "fiber": 1.5, "ash": 2.5}   # canned dog food
if sum(lab.values()) > 100:
    raise ValueError("label adds to more than 100 %")
nfe = 100 - sum(lab.values())
for k in ("protein", "fat", "fiber", "ash"):
    print(f"{k}: {dmb(lab[k], lab['moisture']):.2f} % DM")
print(f"carbohydrate (NFE): {dmb(nfe, lab['moisture']):.2f} % DM")

me = 10 * (3.5 * lab["protein"] + 8.5 * lab["fat"] + 3.5 * nfe)        # modified Atwater
print(f"ME {me:.0f} kcal/kg as fed ({me / 0.22:.0f} per kg DM); protein {lab['protein'] * 10 / (me / 1000):.1f} g/1000 kcal")

print(f"hay CP {16 / 0.88:.2f} % of DM; silage CP {8.5 * 0.35:.2f} % as fed")

af, dm, cp = np.array([30, 8, 9]), np.array([35, 88, 89]), np.array([8, 18, 16])   # ration
kg_dm = af * dm / 100
print(f"ration: {kg_dm.sum():.2f} kg DM, {100 * kg_dm.sum() / af.sum():.1f} % DM, {(kg_dm * cp).sum() / kg_dm.sum():.1f} % CP of DM")

fat, moist = 33, 37                                                       # cheese
print(f"FDM {fat / (100 - moist) * 100:.1f} %, MFFB {moist / (100 - fat) * 100:.1f} %")

x = np.arange(3); w = 0.38
fig, ax = plt.subplots(figsize=(7, 4))
ax.bar(x - w / 2, [8, 5, nfe], w, label="as fed", color="grey")
ax.bar(x + w / 2, dmb([8, 5, nfe], 78), w, label="dry matter basis", color="#9333ea")
ax.set_xticks(x, ["protein", "fat", "carbohydrate"]); ax.set_ylabel("%"); ax.legend()
fig.tight_layout(); fig.savefig("dry_matter_basis.png", dpi=300)

11.2 Output

protein: 36.36 % DM
fat: 22.73 % DM
fiber: 6.82 % DM
ash: 11.36 % DM
carbohydrate (NFE): 22.73 % DM
ME 880 kcal/kg as fed (4000 per kg DM); protein 90.9 g/1000 kcal
hay CP 18.18 % of DM; silage CP 2.97 % as fed
ration: 25.55 kg DM, 54.4 % DM, 13.3 % CP of DM
FDM 52.4 %, MFFB 55.2 %

11.3 Traps

  • dmb() accepts arrays or pandas columns.
  • Moisture of 100 would divide by zero; it is rejected.
  • Keep percentages as numbers, not fractions, throughout.

11.4 What each part does

BlockPurpose
dmb()Checks that the label adds to 100% or less, then as fed ÷ DM fraction
EnergyModified Atwater 3.5, 8.5, 3.5 kcal/g and grams per 1000 kcal
Feeds and rationAs fed ↔ DM and a DM-weighted ration
Middle blocksHay and silage conversion, a three-ingredient ration and cheese fat in dry matter
Last blockProtein, fat and carbohydrate as fed against the dry matter basis, saved at 300 dpi

11.5 Adapting it

Change the label values for your food, or pass whole columns: dmb() is vectorized and works on a data frame of many foods at once.

📋 12. Dry Matter Conversion Tables and Standards

12.1 As fed to dry matter multiplier

Moisture (%)Dry matter (%)Multiply as fed by8% as fed becomes0.2% as fed becomes
01001.0008.00%0.200%
5951.0538.42%0.211%
8921.0878.70%0.217%
10901.1118.89%0.222%
12881.1369.09%0.227%
15851.1769.41%0.235%
20801.25010.00%0.250%
30701.42911.43%0.286%
40601.66713.33%0.333%
50502.00016.00%0.400%
60402.50020.00%0.500%
65352.85722.86%0.571%
70303.33326.67%0.667%
75254.00032.00%0.800%
78224.54536.36%0.909%
80205.00040.00%1.000%
82185.55644.44%1.111%
85156.66753.33%1.333%
901010.00080.00%2.000%

DMB = as fed × 100 ÷ (100 − moisture). Exact. Last checked: October 2026.

12.2 AAFCO minimum protein and fat

ProfileCrude protein, % DMCrude fat, % DMProtein, g/1000 kcalFat, g/1000 kcal
Dog, adult maintenance185.54513.75
Dog, growth and reproduction22.58.556.2521.25
Cat, adult maintenance2696522.5
Cat, growth and reproduction3097522.5

AAFCO dog and cat food nutrient profiles (2016 revision for dogs), stated on a dry matter basis assuming 4000 kcal ME/kg DM; g/1000 kcal = % DM × 2.5. Last checked: October 2026.

12.3 Codex cheese classes

Fat in dry matterTermMFFBFirmness term
≥ 60%High fat< 51%Extra hard
≥ 45% and < 60%Full fat49 to 56%Hard
≥ 25% and < 45%Medium fat54 to 69%Firm or semi-hard
≥ 10% and < 25%Partially skimmed> 67%Soft
< 10%Skim

Codex General Standard for Cheese (CXS 283-1978); the MFFB ranges overlap as published. Last checked: October 2026.

12.4 Dry matter intake and as-fed feed (3% of body weight)

Body weight (kg)kg DM/dayAs fed at 35% DMat 50% DMat 88% DM
3009.025.718.010.2
40012.034.324.013.6
50015.042.930.017.0
60018.051.436.020.5
70021.060.042.023.9
80024.068.648.027.3

Illustrative; actual intake depends on class of animal, production and diet (NASEM, 2016; NASEM, 2021). Last checked: October 2026.

12.5 Modified Atwater energy

Nutrientkcal per g (modified)Example: 1% as fed adds
Crude protein3.535 kcal/kg
Crude fat8.585 kcal/kg
Carbohydrate (NFE)3.535 kcal/kg

Factors used for pet food calorie statements; prediction accuracy reviewed by Hall et al. (2013). Last checked: October 2026.

📈 13. Dry Matter Calculation Examples: Worked Problems

Eight worked problems that cover what a dry matter calculator meets: a kibble, a renal cat food, a hay test, an oven dry matter, a steer, a cheese, food cost and the classic ration mistake. Each number was checked in Python.

1
DOG FOOD

Dry dog food label

Kibble has little water.

A kibble lists 10% moisture, 26% crude protein and 16% crude fat.

10% moisture90% DM26 ÷ 9028.9% protein17.8% fat
QuantityValueNote
Dry matter90%100 − 10
Protein (DM)28.89%26 ÷ 0.90
Fat (DM)17.78%16 ÷ 0.90
As fed vs dry matter26.00 %protein as fed28.89 %protein DM16.00 %fat as fed17.78 %fat DMmapping: bar height = %
Kibble values change only slightly.

What it means: Both are above the AAFCO adult dog minimums (18% and 5.5%).

How to write it: "Protein 28.9% and fat 17.8% on a dry matter basis."

2
KIDNEY DIET

Phosphorus in a wet cat food

Small as fed, large on DM.

A wet cat food has 80% moisture and 0.15% phosphorus.

80% moisture20% DM0.15 ÷ 0.200.75% DMcompare on DM
QuantityValueNote
Dry matter20%
Phosphorus (DM)0.75%0.15 ÷ 0.20
Same as a kibble with0.68% as fedat 10% moisture
Phosphorus0.1500 %as fed0.7500 %dry mattermapping: bar height = %
Five times higher once water is removed.

What it means: Compare renal diets on DM or per 1000 kcal (Ross et al., 2006).

How to write it: "Phosphorus 0.75% on a dry matter basis."

3
FORAGE

Hay test: as fed to dry matter

Lab reports both.

Hay at 88% dry matter tests 16% crude protein as fed.

88% DM16% CP as fed÷ 0.8818.18% CP DM10 kg = 8.8 kg DM
QuantityValueNote
Crude protein (DM)18.18%16 ÷ 0.88
10 kg as fed8.8 kg DM10 × 0.88
Water in 10 kg1.2 kg
Crude protein16.00 %as fed18.18 %dry mattermapping: bar height = %
Dry hay changes little.

What it means: Wet feeds change far more.

How to write it: "Crude protein 18.2% of DM."

4
FEED LAB

Oven dry matter of silage

Dry mass ÷ wet mass.

A tray weighs 15.0 g; with silage 115.0 g; after drying 50.0 g.

tray 15.0wet 100.0 gdry 35.0 g35.0% DM65.0% moisture
QuantityValueNote
Dry matter35.0%35.0 ÷ 100.0
Moisture65.0%
As fed per kg DM2.86 kg1 ÷ 0.35
Silage sample35.00 %dry matter65.00 %watermapping: bar height = %
Two thirds of silage is water.

What it means: Oven drying loses some volatiles, slightly understating DM (Thiex and Richardson, 2003).

How to write it: "Dry matter 35.0% (oven, constant mass)."

5
BEEF CATTLE

Steer intake on a wet ration

DM first, then as fed.

A 450 kg steer eats 2.5% of body weight as dry matter; the ration is 60% DM.

450 kg2.5% BW11.25 kg DM÷ 0.6018.75 kg as fed
QuantityValueNote
Dry matter intake11.25 kg/day450 × 0.025
As fed18.75 kg/day11.25 ÷ 0.60
Water in the feed7.5 kg/day
Daily feed11.25 kgdry matter18.75 kgas fedmapping: bar height = kg/day
Feed bunks are filled as fed.

What it means: Recalculate when the ration DM changes.

How to write it: "DMI 11.25 kg/day = 18.75 kg as fed."

6
CHEESE

Brie-type cheese

FDM and MFFB.

A soft-ripened cheese has 28% fat and 48% moisture.

28% fat48% moisture52% DMFDM 53.8%MFFB 66.7%
QuantityValueNote
Fat in dry matter53.85%full fat
MFFB66.67%firm or semi-hard band
Dry matter52%
Fat vs fat in dry matter28.00 %fat53.85 %FDMmapping: bar height = %
Labels often show FDM.

What it means: FDM stays constant as the cheese dries.

How to write it: "Fat in dry matter 53.8%."

7
VALUE

Cost per kg of dry matter

You pay for water too.

Kibble costs 4.00 per kg at 90% DM; canned food 6.00 per kg at 22% DM.

4.00 ÷ 0.904.44 /kg DM6.00 ÷ 0.2227.27 /kg DM×6.1
QuantityValueNote
Kibble4.44 per kg DM
Canned27.27 per kg DM
Ratio6.1×canned vs kibble
Price per kg DM4.440 kibble27.27 cannedmapping: bar height = price per kg dry matter
Water is the expensive ingredient.

What it means: Per 1000 kcal is the fairest price comparison.

How to write it: "Kibble 4.44 and canned 27.27 per kg of dry matter."

8
COMMON MISTAKE

Averaging ingredient dry matter

Weight by kg fed.

A ration has 30 kg of 35% DM silage, 8 kg of 88% hay and 9 kg of 89% grain.

mean of 35, 88, 89= 70.7% (wrong)Σ DM ÷ Σ as fed= 54.4% (right)−16 points
QuantityValueNote
Wrong (simple mean)70.7%ignores amounts
Right (weighted)54.4%25.55 ÷ 47
Error16.3 pointsoverstates DM
Ration DM70.70 %simple mean (wrong)54.40 %weighted (right)mapping: fuchsia bar = wrong method
Silage is most of the mass.

What it means: Weight every ration figure by as-fed kg.

How to write it: "Ration dry matter 54.4%."

✏️ 14. How Do You Calculate Dry Matter by Hand and Measure It? Steps

The written method, calculator keys and a drying procedure, for the headline problem: canned dog food, 78% moisture, 8% protein, 5% fat, 1.5% fiber, 2.5% ash.

14.1 The written method

  1. Dry matter. 100 − 78 = 22%.
  2. Protein. 8 ÷ 22 × 100 = 36.4%.
  3. Fat. 5 ÷ 22 × 100 = 22.7%.
  4. Carbohydrate. 100 − 78 − 8 − 5 − 1.5 − 2.5 = 5% as fed = 22.7% DM.
  5. Energy. 10 × (28 + 42.5 + 17.5) = 880 kcal/kg.
  6. Check. 36.4% × 0.22 = 8.0% ✓

14.2 On a calculator

StepKeysDisplay
Protein DMB8÷(100−78)×100=36.364
Energy10×(3.5×8+8.5×5+3.5×5)=880
As fed for 21 kg DM at 45%21÷0.45=46.667

14.3 Lab SOP: dry matter of a feed or food by oven drying

Purpose

Determine the dry matter percentage of a feed, forage or food sample.

Equipment

Forced-air oven (for example 100 to 105 °C, or as your method specifies); balance readable to 0.01 g; aluminum trays; desiccator; gloves.

Hazards and controls

Hot trays and oven: use gloves. Fatty samples can smoke; do not leave a microwave unattended when drying forage.

Procedure

  1. Weigh an empty tray.
  2. Add a representative, well-mixed sample (about 100 g for forage, less for dry feed) and weigh.
  3. Dry to constant mass (often overnight).
  4. Cool in a desiccator and weigh.
  5. DM % = (dry − tray) ÷ (wet − tray) × 100. Run duplicates.

Record sheet

ItemValueUnit
Tray20.00g
Tray + wet120.00g
Tray + dry55.00g
Dry matter35.00 ± 0.01%

Acceptance criteria

Duplicates within about 1 percentage point for forages; mass change under 0.1% on further drying. These are teaching-lab criteria; follow your laboratory’s method where they differ (Thiex & Richardson, 2003).

Sources of error and their direction

  • Incomplete drying: DM high.
  • Volatiles lost (silage): DM low.
  • Moisture regained while cooling: DM high.
  • Unrepresentative sample: either way.
  • Charring of sugary samples: DM low.

14.4 Practice problems

1. A food has 75% moisture and 10% protein. Protein on a DM basis?

40.0%

2. Kibble: 12% moisture, 30% protein. DMB?

34.09%

3. Silage 38% DM, 9% CP of DM. CP as fed?

3.42%

4. You need 15 kg DM of a 40% DM feed. As fed?

37.5 kg

5. A 200 g sample dries to 176 g. DM %?

88.0%

6. Cheese: 25% fat, 45% moisture. FDM?

45.45%

7. Wet cat food 80% moisture, 11% protein, 5% fat, 1% fiber, 2% ash. Carbohydrate DM?

5.0%

8. Same food: kcal/kg (modified Atwater)?

845 kcal/kg

9. 700 kg cow at 3% DMI, 50% DM feed. As fed?

42 kg

10. Price 3.00/kg at 88% DM. Price per kg DM?

3.41

14.5 Mistakes that lose marks

  • Dividing by moisture instead of dry matter.
  • Comparing wet and dry foods as fed.
  • Converting masses the same way as percentages.
  • Averaging ration DM without weights.
  • Leaving out the basis in the answer.
  • Forgetting ash in carbohydrate by difference.

14.6 Check-yourself and lab questions

Check: Why is dry matter basis needed for pet foods?

Water content varies from about 10 to 82%, which hides nutrient differences.

Check: Do masses convert the same way as percentages?

No: kg DM = kg as fed × DM fraction; percentages are divided.

Check: Why can carbohydrate by difference be wrong?

It inherits every other error and includes ash if ash is missing.

Check: What does FDM stay constant with?

Ripening and drying of the cheese, unlike fat %.

Lab: Why dry to constant mass?

To be sure all removable water has gone.

Lab: Why can oven DM of silage be low?

Volatile acids and alcohols are lost with the water.

Lab: Why sample several places in a silo?

DM varies across the face and with depth.

Lab: Why record the drying temperature?

Different temperatures give different DM for some feeds.

✅ 15. Which Basis Should You Use?

SituationUseCalculator modeExample
Reading a pet food labelDry matter basisLabel8% → 36.4% DM
Wet vs dry pet foodPer 1000 kcal and DMComparekibble vs canned
Kidney or urinary diet checksPhosphorus % DM and per 1000 kcalLabel (other nutrients)0.12% → 0.55% DM
Hay, silage and feed testsDry matter basisConvert16% → 18.2% CP
Measuring silage moistureDryingDry matter content35% DM
Feeding cattleDM intake, then as fedCattle21 kg DM = 46.7 kg
Cheese labelingFat in dry matterCheese52.4% FDM
Dry matter basis works when
  • Foods differ mainly in water.
  • You compare with requirements set on DM.
  • You balance livestock rations.
Use per 1000 kcal when
  • Foods differ a lot in fat and energy.
  • The pet eats to meet energy needs.
  • Comparing therapeutic diets (Ross et al., 2006).

🔧 16. Common Dry Matter Calculation Mistakes

Almost every wrong dry matter result comes from mixing bases or misreading the label. The dry matter calculator guards against each one below.

SymptomCauseFix
Canned food looks low in proteinCompared as fed with kibbleConvert both to DM
DM value above 100%Used moisture where DM was neededDM = 100 − moisture
Carbohydrate too highAsh left outEnter ash or note “carb + ash”
Values add to more than 100%Typo, or typical and guaranteed values mixedUse one source
Cows under-fed when silage is wetterAs-fed amount not adjustedRe-measure DM, recalculate as fed
Ration DM taken as an average of DM%sNot weightedΣ(as fed × DM) ÷ Σ as fed
Kibble DM taken as 100%Ignored the 8 to 12% waterUse the label moisture
Silage DM too low by ovenVolatiles lostUse a correction or toluene distillation in research
Cheese fat compared at different agesMoisture changedUse fat in dry matter
Phosphorus compared as fedWater differsUse % DM or g/1000 kcal

⚠️ 17. Assumptions and Limitations

AssumptionHow to checkIf it fails
Label moisture is the actual moistureIt is a maximumReal DM can be slightly higher
Carbohydrate by differenceAsh enteredWithout ash, carbohydrate includes ash
Modified Atwater energyCompare with the label kcalUse the manufacturer’s ME when given
AAFCO minimums at 4000 kcal/kg DMPer 1000 kcal comparisonFor very energy-dense foods, use g/1000 kcal
DMI as % of body weightMilk yield, growth, dietUse NASEM intake equations
Oven DM equals true DMFermented feedsCorrect for volatiles
Codex FDM classesNational rulesLocal labeling law may differ

This calculator converts and compares; it does not formulate a complete diet. For pets with disease, work with a veterinarian. Cats on wet food take in more water, which matters for urinary health (Buckley et al., 2011).

🎯 18. Conclusion

Your result

The dry matter calculator gives 36.4% protein and 22.7% fat on a dry matter basis for this dog food (22% dry matter).

What the dry matter calculator does

Water hides what is in a food. This dry matter calculator removes it: pet food labels to a dry matter basis with energy and per-1000-kcal values, any nutrient between as fed and dry matter, dry matter content from drying, cattle intake and rations, fat in dry matter for cheese, and side-by-side food comparison, with every step shown.

Watch out for

  • Compare wet and dry foods only on DM or per 1000 kcal.
  • Enter ash, or treat carbohydrate as an upper bound.
  • Labels are guarantees, not analyses.
  • Re-measure wet feed dry matter often.
  • Weight ration DM by amount fed.

Next steps

For the percentages behind dry matter, use the percent solution calculator; to prepare standards for feed analysis, the molarity calculator and dilution calculator help. Whatever the food, start and finish with the dry matter calculator.

❓ 19. Frequently Asked Questions

Q1. How do you calculate dry matter?

Subtract the moisture percentage from 100. A food with 78% moisture has 22% dry matter, and a kibble with 10% moisture has 90%. To measure it, weigh a sample, dry it to constant mass and divide the dry mass by the wet mass. Dry matter is everything except water: protein, fat, carbohydrate, fiber and minerals.

Q2. How do you calculate dry matter basis?

Divide the as-fed nutrient percentage by the dry matter percentage and multiply by 100. For a food with 78% moisture and 8% protein, dry matter is 22%, so protein on a dry matter basis is 8 ÷ 22 × 100 = 36.4%. Repeat for fat, fiber, ash and minerals such as phosphorus.

Q3. How do you calculate dry matter basis of dog food?

Take the guaranteed analysis, subtract moisture from 100, and divide each nutrient by that figure. A kibble with 10% moisture, 26% protein and 16% fat has 90% dry matter, so it is 28.9% protein and 17.8% fat on a dry matter basis. Canned food with 78% moisture and 9% protein is 40.9% protein.

Q4. How do you calculate dry matter basis of cat food?

Use the same steps. A wet cat food with 82% moisture and 10% protein has 18% dry matter and 55.6% protein on a dry matter basis. A dry cat food with 10% moisture and 32% protein is 35.6%. AAFCO sets 26% protein and 9% fat on a dry matter basis as minimums for adult cats.

Q5. How do you convert as fed to dry matter?

Divide the as-fed value by the dry matter fraction. Hay at 88% dry matter with 16% crude protein as fed has 16 ÷ 0.88 = 18.2% crude protein on a dry matter basis. Masses go the other way: 10 kg of that hay as fed contains 8.8 kg of dry matter.

Q6. How do you calculate as fed from dry matter?

Multiply the dry matter basis value by the dry matter fraction. Silage at 35% dry matter with 8.5% crude protein in the dry matter contains 8.5 × 0.35 = 2.98% protein as fed. To supply 12 kg of dry matter, feed 12 ÷ 0.35 = 34.3 kg of the silage as fed.

Q7. How do you calculate crude protein on a dry matter basis?

Crude protein (DM basis) = crude protein as fed ÷ (100 − moisture) × 100. A feed with 12% moisture and 14% crude protein as fed has 14 ÷ 88 × 100 = 15.9% crude protein on a dry matter basis. Laboratory feed reports usually print both columns: as received and dry matter.

Q8. How do you calculate dry matter percentage of a feed?

Weigh a representative sample, dry it at about 100 to 105 °C in an oven, or in short bursts in a microwave, until the mass stops falling, and weigh again. Dry matter % = dry mass ÷ wet mass × 100 after subtracting the container. A 100 g sample drying to 35 g is 35% dry matter.

Q9. How do you calculate carbohydrate in pet food?

Carbohydrate, or nitrogen-free extract, is calculated by difference: 100 minus moisture, protein, fat, fiber and ash. Labels rarely list ash; if it is missing, the result includes ash and overstates carbohydrate. For the canned food in our example, 100 − 78 − 8 − 5 − 1.5 − 2.5 = 5% as fed, or 22.7% on a dry matter basis.

Q10. How do you calculate calories in dog food from the label?

Use modified Atwater factors: kcal per kg = 10 × (3.5 × protein % + 8.5 × fat % + 3.5 × carbohydrate %). The canned food in our example gives 10 × (28 + 42.5 + 17.5) = 880 kcal/kg as fed, or 4000 kcal/kg of dry matter. Measured energy can differ by several percent from this estimate.

Q11. Why compare pet foods per 1000 kcal?

Pets eat to meet their energy needs, so a nutrient’s amount per 1000 kcal shows how much arrives with each day’s food. It corrects for both water and fat differences. Protein per 1000 kcal = protein % as fed × 10 ÷ (kcal per kg ÷ 1000). AAFCO’s adult dog minimum of 18% DM equals 45 g per 1000 kcal.

Q12. How do you calculate phosphorus on a dry matter basis?

Divide the as-fed phosphorus by the dry matter fraction. A wet cat food with 78% moisture and 0.12% phosphorus has 0.12 ÷ 0.22 = 0.55% phosphorus on a dry matter basis. Kidney diets are compared on this basis or per 1000 kcal, because as-fed values of wet and dry foods are not comparable.

Q13. How do you calculate fat in dry matter for cheese?

Fat in dry matter = fat % ÷ (100 − moisture %) × 100. A cheese with 33% fat and 37% moisture has 63% dry matter and 52.4% fat in dry matter. The Codex General Standard for Cheese calls 45 to under 60% full fat, 25 to under 45% medium fat, and 60% or more high fat.

Q14. How do you calculate dry matter intake for cattle?

Multiply body weight by intake as a percentage of body weight. A 600 kg cow eating 3.5% of body weight needs 21 kg of dry matter a day. Divide by the feed’s dry matter fraction for the as-fed amount: 21 ÷ 0.45 = 46.7 kg of a 45% DM feed. Production, diet and weather change intake.

Q15. How do you calculate the dry matter of a total mixed ration?

Multiply each ingredient’s as-fed kg by its dry matter fraction, add them up, and divide by the total as-fed kg. Thirty kg of 35% DM silage, 8 kg of 88% DM hay and 9 kg of 89% DM grain give 25.55 kg of dry matter in 47 kg, a 54.4% dry matter ration.

Q16. What is the difference between as fed and dry matter basis?

As fed describes the food exactly as eaten, including its water. Dry matter basis describes the same food with all water removed, so foods of different moisture can be compared. Requirements for animals are usually set on a dry matter basis, while mixing and feeding are done on an as-fed basis.

Q17. Why does canned food look lower in protein than kibble?

Because canned food is about three quarters water. A can with 8% protein and 78% moisture is 36.4% protein once water is removed, while a kibble with 26% protein and 10% moisture is 28.9%. The label numbers compare water content as much as nutrients, so always convert to a dry matter basis.

Q18. How accurate are pet food label values?

The guaranteed analysis shows minimum protein and fat and maximum fiber and moisture, not exact contents. Studies comparing labels with laboratory analyses found many foods exceeded the protein and fat minimums and some differed in other nutrients. For precise work, ask the manufacturer for a typical analysis and the metabolizable energy.

Q19. How do you calculate dry matter basis in Excel?

Put moisture in A2 and an as-fed nutrient in B2, then type =B2/(100-A2)*100. To go back, use =C2*(100-A2)/100. For a ration, put kg as fed in B and % DM in C and use =SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4) for the ration dry matter percentage. Fill the formulas down to convert a whole list of foods at once, and keep plain numbers in the cells rather than percent formats.

Q20. Does dry matter basis matter for feed cost?

Yes. You pay for water as well as nutrients. Price per kg of dry matter = price per kg as fed ÷ dry matter fraction. Kibble at 4.00 per kg and 90% dry matter costs 4.44 per kg of dry matter, while canned food at 6.00 per kg and 22% dry matter costs 27.27.

📑 20. Cite This Tool

APA 7th edition
StatsUnlock. (2026). Dry matter calculator [Interactive laboratory tool]. https://statsunlock.com/dry-matter-calculator/
BibTeX
@misc{statsunlock_dry_matter_calculator_2026, title={Dry Matter Calculator}, author={{StatsUnlock Team}}, year={2026}, note={Interactive laboratory tool}, url={https://statsunlock.com/dry-matter-calculator/}}
Methods sentence (fills from your last calculation)
Label nutrients were converted to a dry matter basis (as-fed % ÷ dry matter fraction) and energy was estimated with modified Atwater factors using the StatsUnlock Dry Matter Calculator (2026).

🔗 21. Related Tools

📖 22. Glossary of Terms

TermPlain-English meaning
AAFCOAssociation of American Feed Control Officials; publishes dog and cat food nutrient profiles.
As fedThe food as eaten, including water.
AshMineral residue after burning a sample.
Carbohydrate (NFE)Nitrogen-free extract, calculated by difference.
Crude fatFat measured by ether extraction.
Crude fiberInsoluble fiber fraction on a label.
Crude proteinNitrogen × 6.25.
Dry matter (DM)Everything except water; 100 − moisture.
Dry matter basis (DMB)Nutrient as % of dry matter.
Dry matter intake (DMI)Kilograms of dry matter eaten per day.
Fat in dry matter (FDM)Cheese fat as % of its dry matter.
Guaranteed analysisLabel minimums and maximums for key nutrients.
Metabolizable energy (ME)Energy available to the animal after fecal and urinary losses.
MFFBMoisture on a fat-free basis, sets cheese firmness.
Modified Atwater factors3.5, 8.5, 3.5 kcal/g for protein, fat, carbohydrate.
MoistureWater content, % of the food as fed.
Per 1000 kcalGrams of a nutrient per 1000 kcal of energy.
SilageFermented, moist forage, often 30 to 40% DM.
TMRTotal mixed ration fed to cattle.
Typical analysisAverage measured composition, from the manufacturer.

📚 23. References

Peer-reviewed sources behind this dry matter calculator: nutrient requirements of dogs, cats and cattle, pet food labels and their accuracy, metabolizable energy prediction, feed moisture and ash methods, feed variation on farms, dry matter intake, cat protein and kidney diets, water intake, and measurement uncertainty. Standards (AAFCO nutrient profiles, Codex CXS 283-1978, JCGM 100:2008) are named where they are used. Every DOI checked October 2026.

  1. Allen, M. S. (2000). Effects of diet on short-term regulation of feed intake by lactating dairy cattle. Journal of Dairy Science, 83(7), 1598–1624. https://doi.org/10.3168/jds.S0022-0302(00)75030-2
  2. Asaro, N. J., Guevara, M., Berendt, K., Zijlstra, R. T., & Shoveller, A. K. (2017). Digestibility is similar between commercial diets that provide ingredients with different perceived glycemic responses and the inaccuracy of using the modified Atwater calculation to calculate metabolizable energy. Veterinary Sciences, 4(4), 54. https://doi.org/10.3390/vetsci4040054
  3. Buckley, C. M. F., Hawthorne, A. J., Colyer, A., & Stevenson, A. E. (2011). Effect of dietary water intake on urinary output, specific gravity and relative supersaturation for calcium oxalate and struvite in the cat. British Journal of Nutrition, 106(S1), S128–S130. https://doi.org/10.1017/S0007114511001875
  4. Cole, T. J. (2015). Too many digits: The presentation of numerical data. Archives of Disease in Childhood, 100(7), 608–609. https://doi.org/10.1136/archdischild-2014-307149
  5. Goldberg, D. (1991). What every computer scientist should know about floating-point arithmetic. ACM Computing Surveys, 23(1), 5–48. https://doi.org/10.1145/103162.103163
  6. Gosper, E. C., Raubenheimer, D., Machovsky-Capuska, G. E., & Chaves, A. V. (2016). Discrepancy between the composition of some commercial cat foods and their package labelling and suitability for meeting nutritional requirements. Australian Veterinary Journal, 94(1–2), 12–17. https://doi.org/10.1111/avj.12397
  7. Hall, J. A., Melendez, L. D., & Jewell, D. E. (2013). Using gross energy improves metabolizable energy predictive equations for pet foods whereas undigested protein and fiber content predict stool quality. PLoS ONE, 8(1), e54405. https://doi.org/10.1371/journal.pone.0054405
  8. Hill, R. C., Choate, C. J., Scott, K. C., & Molenberghs, G. (2009). Comparison of the guaranteed analysis with the measured nutrient composition of commercial pet foods. Journal of the American Veterinary Medical Association, 234(3), 347–351. https://doi.org/10.2460/javma.234.3.347
  9. Kragten, J. (1994). Calculating standard deviations and confidence intervals with a universally applicable spreadsheet technique. Analyst, 119(10), 2161–2165. https://doi.org/10.1039/AN9941902161
  10. Laflamme, D. P., & Hannah, S. S. (2013). Discrepancy between use of lean body mass or nitrogen balance to determine protein requirements for adult cats. Journal of Feline Medicine and Surgery, 15(8), 691–697. https://doi.org/10.1177/1098612X12474448
  11. National Academies of Sciences, Engineering, and Medicine. (2016). Nutrient requirements of beef cattle (8th rev. ed.). The National Academies Press. https://doi.org/10.17226/19014
  12. National Academies of Sciences, Engineering, and Medicine. (2021). Nutrient requirements of dairy cattle (8th rev. ed.). The National Academies Press. https://doi.org/10.17226/25806
  13. National Research Council. (2006). Nutrient requirements of dogs and cats. The National Academies Press. https://doi.org/10.17226/10668
  14. Ross, S. J., Osborne, C. A., Kirk, C. A., Lowry, S. R., Koehler, L. A., & Polzin, D. J. (2006). Clinical evaluation of dietary modification for treatment of spontaneous chronic kidney disease in cats. Journal of the American Veterinary Medical Association, 229(6), 949–957. https://doi.org/10.2460/javma.229.6.949
  15. St-Pierre, N. R., & Weiss, W. P. (2015). Partitioning variation in nutrient composition data of common feeds and mixed diets on commercial dairy farms. Journal of Dairy Science, 98(7), 5004–5015. https://doi.org/10.3168/jds.2015-9431
  16. Thiex, N., & Richardson, C. R. (2003). Challenges in measuring moisture content of feeds. Journal of Animal Science, 81(12), 3255–3266. https://doi.org/10.2527/2003.81123255x
  17. Thiex, N., Novotny, L., & Crawford, A. (2012). Determination of ash in animal feed: AOAC Official Method 942.05 revisited. Journal of AOAC International, 95(5), 1392–1397. https://doi.org/10.5740/jaoacint.12-129
  18. Thompson, A. (2008). Ingredients: Where pet food starts. Topics in Companion Animal Medicine, 23(3), 127–132. https://doi.org/10.1053/j.tcam.2008.04.004
  19. Weiss, W. P., Conrad, H. R., & St. Pierre, N. R. (1992). A theoretically-based model for predicting total digestible nutrient values of forages and concentrates. Animal Feed Science and Technology, 39(1–2), 95–110. https://doi.org/10.1016/0377-8401(92)90034-4
  20. Zicker, S. C. (2008). Evaluating pet foods: How confident are you when you recommend a commercial pet food? Topics in Companion Animal Medicine, 23(3), 121–126. https://doi.org/10.1053/j.tcam.2008.04.003
STATS UNLOCK · statsunlock.com · Dry Matter Calculator · StatsUnlock Team
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Statistical Models

Important Plots & Charts

Calculators and Converters