Skip to main content
Peptide Calculator

Cost Per Sample Calculator

Divides a total batch cost by the number of samples produced to give cost per sample. For lab and business bookkeeping; not medical advice.

Cost & Inventory

Calculator inputs

This is a mathematical and laboratory reference tool. It does not diagnose, treat or recommend a dose, and it is not medical advice.

The cost per sample calculator divides the total cost of a batch by the number of samples it produces. It answers the question a budget is actually written against: what does one measurement cost me?

This is the figure that makes synthesis planning comparable, because two syntheses of the same peptide with different yields and different prices can have very different costs per sample even at the same vial price.

The denominator is the number obtained, not the number attempted

The single input that decides whether this figure means anything is the sample count, and it has to be the number actually obtained rather than the number expected. A batch that yields fewer samples than it was planned to yield has still cost what the planned batch cost, so dividing by the planned count understates the real figure, and the shortfall is usually larger than the arithmetic suggests because a failed attempt consumes most of the materials. The yield percent calculator makes the difference between a theoretical and an actual yield explicit before it ever reaches this division.

A related distinction is between samples and measurements. Material consumed as a quality control check, retained as a reference, or held back as a spare still cost what they cost, so including them in the denominator gives a lower per sample figure than excluding them does. Both conventions exist and neither is wrong, but mixing them between two projects makes the two figures incomparable, which defeats the purpose of computing either. Where a batch produces a mix, the honest description is an average, and the recovery percent calculator is useful for recording what a process actually yielded first.

Why an average can hide the sample you care about

Dividing a total by a count produces a mean, and a mean says nothing about the spread. If a batch is split evenly the mean is a fair description of any single sample. If it produces nine of one size and one of another, the mean describes a sample that does not exist, understating the common case and overstating the rare one. That is not a flaw in the calculation. It is a property of averages, and it is why the figure reads best next to the batch total it was taken from, which the batch cost calculator produces.

The way to make a mean describe a real sample is to change the denominator to match the question. Dividing by the number of samples of one particular size gives the cost of a sample of that size. Dividing by total amount delivered, expressed in the same mass units as the material, gives a cost per milligram delivered, which is a different and often more useful figure. Both are one division, and choosing between them is a matter of what the number is going to be compared against rather than of which is more accurate.

Fixed costs do not scale the way this figure implies

Cost per sample behaves as though every cost in the batch were fixed and every additional sample cost nothing to make. A real batch total mixes two kinds of cost: costs that recur whatever the batch size, and costs that recur with each sample, and this division cannot tell them apart. The batch scaling calculator performs the purely proportional scaling that assumes every cost behaves this way, which makes it the right place to see that assumption written down rather than hidden. A project carrying a large one-off component and one carrying a large repeatable component can therefore return the same figure at completely different underlying costs per sample.

The consequence is that two projects using the same material can show very different cost per sample figures with no difference in efficiency between them. One may have carried a large one-off cost that the second did not, or produced many more samples from the same fixed inputs. Because the arithmetic here cannot separate the two kinds of cost, a figure that looks poor may be entirely explained by the denominator. Establishing the batch total properly, with consumables and failed attempts included, is what makes the comparison worth making at all. Splitting a total into its fixed and repeatable parts before dividing is the only way to see which of the two is driving the number, and no field on this page performs that split for you.

Getting the batch total honest before dividing by it

The division is trivial, so all of the uncertainty sits in the numerator. A batch cost that omits failed attempts, purification, analyst time, or the consumables nobody invoiced will produce a per sample figure that is precise and wrong, which is the worst combination available. Building the list line by line instead of estimating it in one figure is the entire value of the step before this one, and the sample prep calculator is a reasonable place to itemise what a single preparation consumes in advance of writing the sheet up.

Currency is the other thing that has to be settled before two figures are compared. No conversion is applied here, so the result is in whatever units the batch cost was entered in, and two projects quoted in different currencies have to be converted before either is divided. Once both the numerator and the count are honest, the result is the amortised cost of producing one unit at one particular scale and nothing more than that. It is a project figure, it describes this batch, and it will not transfer to a different batch without recalculation.

How this calculator works

Divide the total batch cost by the number of samples. Nothing more, but the result is only as good as the batch cost figure, which has to include everything the process consumes.

If the batch is split unevenly, for example some samples get a different amount, the arithmetic gives an average rather than a per sample cost, and the two are not the same thing.

The formulas

  • cost per sample = batch cost / number of samples

    An average, not a per sample figure, if the samples differ.

Worked example

Cost per sample from a 120 unit batch of ten

Illustrative example. The numbers are chosen to make the arithmetic easy to check. They are not a dose, a protocol or a recommendation.

Given

Batch cost
120
Number of samples
10
  1. Divide
    Substitution
    120 / 10
    Result
    12 per sample

What this shows

Twelve per sample. If the same batch were split into twenty samples instead, the figure would be six, and if the batch cost rose because of a failed first attempt, the cost per sample would rise even though nothing about the chemistry changed. Cost per sample is a project figure, not a property of a peptide.

Understanding the inputs

Total batch cost
The total cost of producing the batch.
Watch for: Leaving out failed attempts, purification, resin, solvents, HPLC time or analyst time will understate the cost, sometimes dramatically. A batch that took three attempts is not a third of the price of one that took the first time.
Number of samples
How many samples the batch yields, including any that will be sacrificed to QC.

Understanding the results

Cost per sample
The average cost per sample, in the same currency as the batch cost.

Units explained

Batch cost
Every cost the process incurred, including failed attempts. Excluding failures is the most common way this figure is understated.
Cost per sample
An average. Not a per sample cost unless all samples are identical.

Common mistakes

  • Excluding failed synthesis attempts, which is the standard way a real project cost is understated by a large factor.
  • Dividing by the theoretical number of samples rather than the number actually obtained.
  • Treating cost per sample as a property of the peptide. It is a property of this project at this scale.

Important limitations

  • It knows nothing about what went into the batch cost, so a plausible looking number can be badly wrong.
  • It is an average and hides any variation between samples.

Frequently asked questions

What does the cost per sample calculator compute?

It divides a total batch cost by the number of samples produced from that batch: cost per sample = batch cost / number of samples.

How do I use the cost per sample calculator?

Enter the total cost of the batch and the number of samples it yielded. The calculator returns the cost per individual sample.

When is the cost per sample calculator useful?

For budgeting or pricing individual samples, aliquots, or units produced from a shared batch, once you know the batch's total cost.

How is the cost per sample calculator different from the batch cost calculator?

The batch cost calculator sums a list of individual line items, unit cost times quantity, to compute a total batch cost in the first place; this calculator takes that total and divides it by however many samples the batch yielded.

What happens with zero samples on the cost per sample calculator?

It is rejected as invalid; the number of samples must be a positive number, since it is the denominator.

Can batch cost be zero on the cost per sample calculator?

Yes, a batch cost of zero is accepted, returning a cost per sample of zero; only a negative batch cost is rejected.

What units does the cost per sample calculator use?

Whatever currency you entered the batch cost in; the per-sample cost is expressed in that same currency.

Is the cost per sample calculator free?

Yes. The cost per sample calculator runs entirely in your browser.