Free online chemistry & sequence tools

DNA Molecular Weight Calculator

Paste a DNA or RNA sequence to get single-stranded and double-stranded molecular weights, base composition and GC content.


What this DNA molecular weight calculator does

Paste a DNA or RNA sequence and the calculator returns the base composition, GC content, and the molecular weight of the single-stranded and double-stranded molecules. It supports FASTA input, one record per sequence, and reports the result in Da and kDa.

The calculation uses average nucleotide residue masses. DNA and RNA are detected from the letters in the sequence: T means DNA, U means RNA. A sequence that contains both T and U is rejected because it cannot be both molecules at once. For the difference between average and monoisotopic mass, see the molecular weight guide.

How the molecular weight is calculated

Each nucleotide contributes its residue mass — the mass of the free nucleotide minus one water molecule, because a water molecule is lost when the phosphodiester bond forms. The chain has one free 5′ end and one free 3′ end, so one water molecule is added back:

ssMW = Σ(nucleotide residue masses) + H₂O

For a double-stranded molecule, the complementary strand has the same base composition and the same length, so:

dsMW = 2 × ssMW

This is the standard approximation for a perfectly complementary duplex. It does not include counter-ions, modified bases or a 5′ phosphate that is absent from the residue model.

Worked example

The 39-base sequence ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG has the composition A=9, T=8, G=14, C=8 and a GC content of 56.41%. Using DNA residue masses:

  • Single-stranded DNA: 12,192.89 Da (12.193 kDa)
  • Double-stranded DNA: 24,385.77 Da (24.386 kDa)

The same sequence with U instead of T is RNA: the single-stranded RNA mass is 12,704.65 Da and the double-stranded RNA mass is 25,409.29 Da. The difference comes from the extra oxygen in the ribose and the different base masses.

DNA vs RNA

FeatureDNARNA
BasesA, T, G, CA, U, G, C
SugarDeoxyriboseRibose
Typical formDouble-strandedUsually single-stranded
Residue mass difference—About 16 Da per nucleotide

For RNA, the double-stranded value is reported as dsRNA, but most RNA molecules in a cell are single-stranded; use the ssRNA value unless you are specifically working with a duplex.

Ambiguous and modified bases

IUPAC ambiguity codes such as N, R, Y, K, M, S, W, B, D, H and V do not have a unique mass. The calculator counts them as unknown, excludes them from the mass, and reports how many were ignored. For a sequence with many Ns, the reported mass is a lower bound for the known positions only.

Modified bases (methylation, biotin, fluorophores, phosphorothioate linkages) are not modeled. If you are ordering a modified oligonucleotide, use the vendor's calculator or add the modification mass manually.

Common uses

  • Checking the expected mass of an oligonucleotide before ordering.
  • Converting between sequence length and molecular weight for a molecular-biology protocol.
  • Estimating the mass of a DNA or RNA sample for mass spectrometry.
  • Comparing ssDNA and dsDNA values for the same sequence.
  • Pairing with the GC content calculator for primer design.

Frequently asked questions

What is the difference between ssDNA and dsDNA molecular weight?

ssDNA is one strand; dsDNA is the duplex of the sequence and its complement. For a perfectly complementary duplex of equal length, the dsDNA mass is exactly twice the ssDNA mass.

Does it handle RNA?

Yes. If the sequence contains U and no T, it is treated as RNA and the RNA residue masses are used. A sequence containing both T and U is rejected.

What about N and other ambiguous bases?

They are counted as unknown, excluded from the mass, and reported separately. The GC percentage still uses the full sequence length, so N bases lower the reported GC content.

Why does my vendor's molecular weight differ?

Vendors may include counter-ions (usually sodium), a 5′ phosphate, modified bases or a different terminal group. Check whether the vendor reports the sodium salt, the free acid or a modified oligo, and compare the same form.

Does it calculate melting temperature (Tm)?

No — this page reports mass and base composition. Tm depends on salt concentration, primer concentration and the nearest-neighbor stacking interactions, not just GC content.

Can I calculate the mass of a plasmid or a whole genome?

Yes, if the sequence fits in the input box. Very large sequences are better handled with a script or the API; the calculation grows linearly with length.