Home / Science / Agriculture and food / Agronomy and soil science / Fertiliser blend calculatorTool #381

Fertiliser blend calculator: turn N, P2O5 and K2O needs into kg of each product, with cost

Type the nitrogen, phosphate, potash (and sulphur) your field needs and the fertiliser grades you can buy, such as 46-0-0, 18-46-0 and 0-0-60. Get the amount of each product per hectare or acre, what is over or under supplied, totals and bags for the field, and the cost if you type prices.

Keep it one tap away for everyday use.

Bookmark Fertiliser blend calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Needs
  2. Products
  3. Blend
  4. Cost
Nothing is uploadedWorks offline once open

Field and needs

Leave a need blank to ignore that nutrient; type 0 to avoid it. Closest finds the amounts that come nearest to every need (exact when the products allow it). Meet every need finds the cheapest blend (or the lightest, without prices) that gives at least each need, so some nutrients may be over. The example needs are made up; use your own soil test and advice.

Products you can buy

Up to 12 products. Grades are percent by weight, as printed on the bag (46-0-0 is 46 % N). Prices are only used when every product has one; any currency. The example prices are made up.

What it does

A soil test or a nutrient plan tells you how much nitrogen (N), phosphate (P₂O₅) and potash (K₂O) a field needs, in kg per hectare or lb per acre. Fertilisers are sold as grades: three numbers on the bag giving the percent of N, P₂O₅ and K₂O by weight. Urea is 46-0-0, diammonium phosphate (DAP) is 18-46-0 and muriate of potash is 0-0-60. A fourth number, as in 21-0-0-24 for ammonium sulphate, is read as sulphur (S).

This calculator works out how much of each product to spread so the field gets what it needs. Because one product often carries two nutrients (DAP brings N as well as P₂O₅), the sums are a small system of equations, and the tool solves it for you.

How to use it

  1. Choose kg per hectare or lb per acre, and whether your needs are written as oxides (P₂O₅, K₂O, as on the bag) or as the elements P and K. Element needs are converted with P × 2.2913 = P₂O₅ and K × 1.2046 = K₂O.
  2. Type the needs. Leave a need blank to ignore that nutrient; type 0 if you want as little of it as possible.
  3. List the products you can buy, one per line: a name, the grade, and optionally a price per tonne (per ton of 2,000 lb in US units).
  4. Give the field area and, if you like, the bag size.

The two blends

  • Closest to the needs finds the amounts that come nearest to every need at once (non-negative least squares: no product can be negative). If the products can meet the needs exactly, they are met exactly. If they cannot, for example with no straight nitrogen product, the table shows which nutrients are over or under.
  • Meet every need, least cost finds the cheapest blend that gives at least each need, so a nutrient may be over. Without prices for every product it finds the lightest blend instead.

When several blends are equally close, the cheapest (or lightest) is shown.

Worked example

Press Use the example: made-up needs of 150 kg N, 60 kg P₂O₅ and 90 kg K₂O per hectare on a 12 ha field, with urea, DAP, potash and ammonium sulphate at made-up prices. DAP covers the phosphate (60 ÷ 0.46 = 130.4 kg/ha) and brings 23.5 kg of N, potash covers the K₂O (90 ÷ 0.60 = 150.0 kg/ha), and urea makes up the rest of the N (126.5 ÷ 0.46 = 275.0 kg/ha). Every need is met exactly: 555.5 kg of product per hectare, costing 353.27 per hectare and 4,239.22 for the field. With 50 kg bags you buy 67 bags of urea, 32 of DAP and 36 of potash.

If you remove urea and ammonium sulphate, DAP and potash alone cannot give 150 kg N without far too much phosphate. The closest blend then leaves N under and P₂O₅ over; choose Meet every need to see the blend that reaches 150 kg N at the cost of extra phosphate.

FAQ

Where do I get the needs? From a soil test and the advice of your agronomist, lab or extension service. This tool does the arithmetic; it does not recommend rates.

Does it account for losses or timing? No. Split applications, losses and nutrients from manure are up to your plan; type the amounts you want this application to supply.

Is anything uploaded? No. Everything runs in your browser and works offline.

Where the numbers come from

  • Mass balance of nutrients from product grades (percent by weight, the usual N-P2O5-K2O label convention) and the oxide-to-element factors worked out from standard atomic weights (general chemistry facts).
  • Closest blend by non-negative least squares (Lawson and Hanson, Solving Least Squares Problems, 1974) and least-cost blend by linear programming, both solved exactly by visiting every basic solution.
  • Checked against scipy.optimize.nnls and scipy.optimize.linprog on 300 random product sets and needs, and the worked examples in the tests. The example needs, products' prices and field are made up; the grades are common generic ones.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Soil test interpreter #382 Work out how much lime raises your soil's pH, from CEC and base saturation, from a buffer capacity, or from your lab's lime factor, scaled to your depth and to your lime's neutralising value and fineness. Then see which nutrients are low, in range or high against the ranges you type. Irrigation scheduler #383 Paste or open daily reference evapotranspiration (ET0) and rain, describe the soil and crop, and follow the root-zone water balance day by day: when the crop reaches its readily available water, how much to put back, deep drainage after big rain, stress days, and the water to pump. Seeding rate calculator #384 Turn a target plant population into seeds and kg (or lb) to sow from germination, purity, field emergence and seed weight, with seeds per metre or foot of row and the gap between seeds. Then count plants in a length of row or a frame to see the stand you got and your real establishment. Field trial designer #385 Lay out a field or glasshouse trial as a randomised complete block, Latin square or completely randomised design. Random but repeatable from a seed, checked, drawn as a plot map, and saved as a CSV field book. Nothing is uploaded. Sprayer calibration calculator #387 Work out a boom sprayer's spray volume from nozzle flow, travel speed and nozzle spacing, or the nozzle flow and pressure a volume needs. Check every nozzle with a catch test, use the 1/128-acre method, and see how far a tank goes and how much product goes in each tank for the label rate you type. Yield trial ANOVA and LSD #386 Paste or open your plot yields and get the analysis of variance for a randomised complete block, completely randomised or Latin square trial: F tests with p-values, CV %, standard errors, the LSD at 5 % or 1 % and letters that group the means. Nothing is uploaded.