DNA Base Pair Calculator
Paste a DNA sequence to count A, T, G and C, get the length in base pairs and the complementary strand.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
A pairs with T and G pairs with C; length in bp = number of bases
Frequently asked questions
What counts as a base pair?
One base on each strand joined by hydrogen bonds. A single strand of 100 bases forms 100 base pairs when paired.
Does it accept spaces and numbers?
Yes. Spaces, digits and line breaks are ignored, so you can paste a sequence from a database.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
DNA to RNA Converter
Convert a DNA sequence to RNA by swapping T for U, or transcribe a template strand into its mRNA.
GC Content Calculator
Find the percentage of G and C bases in a DNA or RNA sequence, with the AT content, length and an estimated melting temperature.
DNA Molecular Weight Calculator
Estimate the molecular weight of a single or double stranded DNA sequence from its base composition.