Skip to content

DNA and RNA molecular weight

seq_nucleic_acid_mass

Works out the average molecular weight and elemental formula of a DNA or RNA sequence.

Runs
Held: built, not on the server yet
Level
Checked against a reference: hand arithmetic from the cited residue masses

Why it is held. The operator has taken this tool off the server. This page does not record why, so read nothing about its numbers from this, good or bad. It has been withdrawn on this server.

Open in Drybench Sequence

What it is

Required: strands (single, double); topology (linear, circular). Exact average molecular weight and elemental formula of a DNA or RNA sequence from nucleoside monophosphate residues and CIAAW 2021 atomic weights. Linear molecules require fivePrime; ambiguity codes and gaps are refused with each position listed.

Field: Sequences. It is the same calculation as Drybench Sequence, called by an AI assistant through the server.

What it does

You give

  • sequence (required): The DNA or RNA sequence: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
  • strands (required): Strandedness of the molecule (single or double).
  • topology (required): Molecule topology (linear or circular).
  • alphabet: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
  • fivePrime: 5-prime end group on each strand; required when topology is 'linear'.

No request is shown while this tool is held.

Limits

  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
  • No other limit is recorded for this tool.

It will not answer when

  • The sequence contains no nucleotide letters.
  • Any letter other than A, C, G and T (U for RNA), each named with its position; ambiguity codes are refused, never averaged.
Every input, with its units5 inputs
  • sequence (required): The DNA or RNA sequence: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
  • strands (required): Strandedness of the molecule (single or double).
  • topology (required): Molecule topology (linear or circular).
  • alphabet: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
  • fivePrime: 5-prime end group on each strand; required when topology is 'linear'.
Every refusal, with its code2 refusals
CodeWhen
EMPTY_SEQUENCEThe sequence contains no nucleotide letters.
UNRESOLVED_LETTERSAny letter other than A, C, G and T (U for RNA), each named with its position; ambiguity codes are refused, never averaged.

The calculation

The method's equations, constants and worked example.

Nucleic acid molecular weight from the sequencenucleic-acid-average-mass@1.0.0

Sum the residue formulas (each nucleoside 5′-monophosphate less one water) over the strand, and over both strands for a double strand

a linear strand adds one water, and with a 5′-OH end loses HPO3 (one H, one P, three O)

a circle adds nothing. M is the formula's weight by formula-mass@1.2.0.

SymbolMeaning
Mmolecular weight of the molecule as stated (strands, topology, 5′ end), g/mol
ConstantValueFrom
DNA and RNA residue formulas (monophosphate less water) residuesa table of values, part of the methodSource 1

Conventions

  • Convention chosen by this project: by default the oligo is single-stranded linear DNA with 5′-OH and 3′-OH ends, as synthetic oligos are supplied. A 5′-phosphate would add 79.98 g/mol.

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

Worked example

Worked example: one case of nucleic-acid-average-mass@1.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • sequence = ATGCATGC
  • topology = circular
  • massNg = 100

Steps

  1. resA: NMP − H2O = C10H12N5O5P1, from NMP = C10H14N5O6P1.
  2. resC: NMP − H2O = C9H12N3O6P1, from NMP = C9H14N3O7P1.
  3. resG: NMP − H2O = C10H12N5O6P1, from NMP = C10H14N5O7P1.
  4. resT: NMP − H2O = C10H13N2O7P1, from NMP = C10H15N2O8P1.
  5. strands: count both strands = A 4, C 4, G 4, T 4 (circular: no end groups), from top = ATGCATGC, bottom = GCATGCAT.
  6. formula: sum = C156H196N60O96P16.
  7. MW: Σ n × A_r = 4943.1920 g/mol, from C = 12.011, H = 1.0080, N = 14.007, O = 15.999, P = 30.974; gives result.molecularWeight.

The working, as the case writes it:

Residue = nucleoside 5′-monophosphate less water

circular double strand = both strands' residues

M = Σ n × A_r.

Answer

result.molecularWeight = 4943.1920 g/mol

Where these values came from: our own exact-arithmetic script and a hand-worked case; PubChem compound records dAMP (CID 12599) C10H14N5O6P, dCMP (13945) C9H14N3O7P, dGMP (135398597) C10H14N5O7P, dTMP (9700) C10H15N2O8P, read 11 November 2026; CIAAW, Abridged Standard Atomic Weights 2024: C 12.011, H 1.0080, N 14.007, O 15.999, P 30.974.

The build has not run this example through the tool.

Sources

  1. PubChem compound records: dAMP (CID 12599), dCMP (13945), dGMP (135398597), dTMP (9700), AMP (6083), CMP (6131), GMP (135398631), UMP (6030); property MolecularFormula.

    Used for: Nucleic acid molecular weight from the sequence. At: section MolecularFormula of each CID.

    Read in full, 11 November 2026

How it is checked

Level

Checked against a reference.

Checked against

Hand arithmetic from the cited residue masses within 0.01 g/mol on 5 oligos (6 October 2026).

Cases

No case set is linked to this version.

Hostile inputs

Sent 19 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Same answer

Called twice and with its arguments in another order, it gave the same result.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Not checked

All eight residue formulas were checked against PubChem's monophosphate formulas on 11 November 2026 (each one water less): all agree. No published case set names nucleic-acid-average-mass@1.0.0.

Open

The operator has taken this tool off the server. This page does not record why, so read nothing about its numbers from this, good or bad. It has been withdrawn on this server.

What this project's records still lack2 things
  • A run of the worked example through the tool for nucleic-acid-average-mass@1.0.0.
  • A case set linked to this version for nucleic-acid-average-mass@1.0.0.
Changes to its methods0 changes

No change is logged for these method versions.