Skip to main content
Peptide Calculator

Amino Acid Composition Calculator

Counts each amino acid in a pasted sequence and reports its share of the total as a percentage. Educational reference, not medical advice.

Sequence Analysis

Calculator inputs

One-letter amino acid codes only (A-Y). Spaces and line breaks are ignored.

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

The amino acid composition calculator counts how many of each residue a peptide contains and what percentage of the chain each one makes up.

Composition is the first thing to establish about a sequence, because several other quantities are composition weighted. An average hydropathy score is a mean over residues, so it is composition by definition. The extinction coefficient is a weighted sum over tryptophans, tyrosines and disulfide bonds. Molar mass is a sum of residue masses.

It is also the fastest way to spot a transcription error in a sequence, because a count that does not match what you expected is visible at a glance.

Why the count sits underneath every other sequence descriptor

Composition is not a property of peptide behaviour. It is an inventory, and its value comes from being the material every other descriptor on a peptide page is built out of. A mean hydropathy divides a weighted sum by the residue count. An extinction coefficient is a weighted sum over tryptophans, tyrosines and cystine pairs. A molecular weight is a sum of residue masses. In each of those the count from this page is either the divisor or one of the summands, so an error in the composition does not stay local. It propagates into every number computed after it.

Doing the count before anything else is therefore a discipline rather than a formality, because it is the cheapest number on the page to verify and the most widely reused. A transcription slip almost always shows up here. A substitution of one residue for another leaves the length untouched while raising one count and lowering another, which a length check cannot see and a composition table makes obvious. A deletion does change the length, so length catches it first, but the composition then identifies which count is short and by how many, and that is usually enough to locate the position.

Mole fraction against mass fraction, and why they disagree

The percentages on this page are mole fractions written as percentages. They are not mass fractions, and the two disagree residue by residue by an amount that can be large. Converting is not a matter of scaling the whole table. Each percentage has to be multiplied by the tabulated mass of the residue it belongs to, the results summed, and the total divided through. That weighted step is exactly what the average molecular weight calculator performs, so the two pages together give a mole composition and the mass each part of it carries.

A chain of GWWY shows the gap cleanly. Three of the four positions are aromatic residues, so each one is 75 percent of the chain by count, and each carries a residue mass well above the average for a peptide. Those three positions therefore account for a noticeably larger share of the mass than 75 percent. Nothing is inconsistent here: the two numbers answer two different questions, and a reader who wants the mass breakdown has to convert rather than assume. Any estimate that starts from counts moves by a different amount depending on which of the two it started from.

What the residue classes buy, and what they cost

The twenty residues are sorted into exactly one class each, which is what makes the class percentages easy to compute and awkward to combine. The aromaticity calculator and the hydrophobic, polar and charged fraction pages all read the same classification and differ only in which classes they sum. The cost is that a single residue can answer more than one of those questions at once. Tyrosine is aromatic because its ring system absorbs ultraviolet light, polar because its phenolic hydroxyl hydrogen bonds with water, and non polar across most of its surface. One classification, three defensible questions, three overlapping answers.

It is worth treating a class as a statement about connectivity rather than about behaviour, because it is one. Cysteine is listed as polar because a free thiol hydrogen bonds, and a cysteine that has formed a disulfide has no such group left. Histidine is listed as basic because it can accept a proton, and at a pH well above its own pKa it is mostly unprotonated and mostly neutral. Neither label is wrong and neither is much use once the environment is not the one the classification was built for, which is a good reason to reach for the net charge calculator when the question is about charge rather than about membership.

Why a composition cannot be read back off a mass

One tempting move is to invert this page: take a molecular weight and ask which composition produced it. That fails for two independent reasons, and either one on its own is fatal. Leucine and isoleucine carry identical tabulated residue masses on both the average and the monoisotopic scale, so even a perfect mass leaves an unbreakable choice between them. Separately, any given multiset of residues can be written in any order at all, and order leaves no trace in a mass. The mass fixes neither which residues are present nor where they sit.

The mass to sequence estimator makes that ambiguity visible rather than concealing it, and it will not name a composition for you. Composition is reliable in the forward direction only: you have the sequence, and the question is what it is made of. From there, molecular weight from a sequence covers how the counts and the residue masses combine, the molecular formula calculator carries the same composition forward into element counts by removing one water for every peptide bond, and the extinction coefficient calculator uses three residue counts plus a bond count you have to supply yourself.

How this calculator works

The counting itself is trivial: walk the sequence, keep a tally per letter. The interesting part is the percentage, which is each count divided by the length and multiplied by one hundred.

The classification behind the other calculators on this page follows the same tabulation. Each of the twenty residues is assigned to exactly one class, so a residue is never double counted when a question asks about composition.

The formulas

  • count(X) = the number of times X appears in the sequence

  • percentage(X) = count(X) / length x 100

    The percentages sum to one hundred across all twenty residues, rounded.

Worked example

Composition of the four residue peptide AGDE

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

Given

Sequence
AGDE
Length
4 residues
  1. Count each letter: A appears once, G once, D once, E once
    Substitution
    1 + 1 + 1 + 1
    Result
    A 1, G 1, D 1, E 1
  2. Divide each count by the length
    Substitution
    1 / 4 x 100
    Result
    25% each

What this shows

Every residue appears exactly once, so every percentage is identical. The result that matters is the length of four, which is what the average molecular weight calculator then turns into a mass.

Understanding the inputs

Amino acid sequence
One letter codes for the standard twenty residues.
Watch for: Three letter codes and lowercase forms are rejected rather than coerced, so a sequence pasted from a supplier PDF may need retyping.

Understanding the results

Sequence length (residues)
The total residue count. Every percentage on this page is relative to this number.
Residue composition (count, %)
Each residue that is present, with its count and its share of the chain, ordered most frequent first. Residues absent from the sequence are left out rather than shown as zero.

Common mistakes

  • Reading a percentage as a mass fraction and multiplying it by the vial mass to get a mass per residue. It is a mole fraction, not a mass fraction, so the two differ by the ratio of residue masses.
  • Expecting a residue to appear in more than one class. The twenty residues partition into classes with no overlap, so hydrophobic, polar, charged and aromatic fractions need not sum neatly to one hundred once aromatic residues are counted as hydrophobic too.

Important limitations

  • Standard residues only. Any letter outside the twenty is rejected, so a sequence containing selenocysteine, pyrrolysine or a non natural residue cannot be counted here.
  • The percentages are rounded to two decimal places, so a very long sequence can accumulate a small rounding total.

Frequently asked questions

What does the amino acid composition calculator compute?

It counts how many times each amino acid appears in a sequence and expresses each count as a percentage of the total residue count.

How do I use the amino acid composition calculator?

Enter a peptide sequence in one letter amino acid codes. The calculator returns the total length alongside the per residue counts and percentages.

Why is amino acid composition useful?

Composition informs downstream choices, such as whether a sequence has enough tryptophan or tyrosine for UV quantification, see the extinction coefficient calculator, or enough charged residues to expect strong pH dependent solubility.

What method does the amino acid composition calculator use?

It is a direct tally: the parsed sequence is grouped by residue code, and each group’s count is divided by the total sequence length and multiplied by 100.

What counts as an invalid sequence on the amino acid composition calculator?

Any character outside the 20 standard one letter amino acid codes is rejected as an invalid character, rather than being silently skipped or miscounted.

Does the amino acid composition calculator tell me the sequence order?

No, composition is order independent. Two peptides with the same amino acids in a different order have identical composition results.

Is the amino acid composition calculator different from the hydrophobic, polar, charged, and aromatic fraction calculators?

Those calculators group individual residue counts into broader side chain classes and report one combined percentage each; this calculator reports every individual amino acid’s own percentage.

Is the amino acid composition calculator free to use?

Yes. The sequence composition calculator runs entirely in your browser.