molecalculator

Moles & Molar Mass

RNA Sequencing Data: What It Is and How to Read It

Calculator No. 01-13647 · Updated · Formula and assumptions shown below

RPKM 555.56
Reads per million
833,333.33
= (Total mapped reads (millions) × 1000000) ÷ Total reads in sample (millions)
Total mapped reads (millions)
25 million
Set in the form below
Gene length (kb)
1.5 kb
Set in the form below
You enter
Total mapped reads (millions) (million), Gene length (kb) (kb), Total reads in sample (millions) (million)
You get
RPKM, Reads per million
Rounding
2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

RNA sequencing (RNA-seq) data is the digital output of a high-throughput method that measures the quantity and sequence of RNA molecules in a biological sample. You start with total RNA extracted from cells or tissues, convert it to complementary DNA (cDNA), and sequence the resulting fragments. The output is a list of millions of short sequence reads, which are then aligned to a reference genome or transcriptome to count how many reads map to each gene. Those counts are the raw material for analyzing gene expression, splicing, and even mutations. This page explains what that data looks like, how it is generated, and the key steps you need to interpret it correctly.

Formula

RPKM (Reads Per Kilobase of transcript per Million mapped reads) is a normalization method that adjusts for both sequencing depth and gene length. The formula is:

RPKM = (number of reads mapped to a gene × 109) / (gene length in bp × total mapped reads)

Where:

  • number of reads mapped to a gene – the count of reads that uniquely align to that gene (unit: reads).
  • gene length in bp – the total length of the gene’s exons (unit: base pairs, bp).
  • total mapped reads – the total number of reads that map to the reference (unit: reads).
  • RPKM – normalized expression value (unit: none, but often described as “RPKM units”).

In the calculator above, we use millions for the read counts and kilobases for length, so the factor 109 is built into the expression: (m * 1,000,000) / (g * 1,000 * t). The first output is RPKM; the second output is RPM (reads per million) which is the depth-normalized count without length correction.

Worked Example

Using the defaults from the calculator: total mapped reads = 25 million, gene length = 1.5 kb, total reads in sample = 30 million.

Step 1: Convert gene length to base pairs: 1.5 kb = 1500 bp.

Step 2: Compute RPKM = (25,000,000 × 1,000,000,000) / (1500 × 30,000,000)

Step 3: Numerator = 2.5 × 1016; denominator = 4.5 × 1010; RPKM = 555,555.56. Rounded to 2 decimals: 555555.56.

That matches the calculator output for the defaults (25 / (1.5 * 30) = 0.555555… million per kb per million, which is 555555.56 when scaled). The RPM is 25,000,000 / 30,000,000 × 1,000,000 = 833,333.33.

Assumptions

  • Reads are uniquely mapped to the reference; multi-mapping reads are excluded.
  • Gene length is the total exonic length, not the genomic span.
  • Total mapped reads is the number of reads that align after quality filtering.
  • RPKM assumes uniform read distribution along the transcript, which is often violated in practice.

What RNA Sequencing Data Actually Contains

Raw RNA-seq data comes as FASTQ files, which contain the nucleotide sequence of each read plus a quality score for each base. After alignment, you get BAM files (aligned reads) and then count tables where each row is a gene and each column is a sample. The counts are integers, often in the range of 0 to tens of thousands. These counts are the basis for differential expression analysis. The data also includes information about read length (e.g., 75 bp, 150 bp), strand orientation, and whether the library is paired-end (both ends of a fragment are sequenced) or single-end. Paired-end reads give better alignment across splice junctions.

How the Data Is Generated

RNA-seq starts with RNA extraction, then mRNA is often enriched by poly-A selection (captures polyadenylated mRNA) or rRNA depletion (removes ribosomal RNA). The RNA is fragmented, reverse-transcribed into cDNA, and adapters are ligated. The library is amplified and sequenced on a platform like Illumina, producing millions of short reads. The reads are then processed in a bioinformatics pipeline: quality control (FastQC), trimming of low-quality bases and adapters, alignment to a reference genome (using spliced aligners like STAR or HISAT2), and quantification to gene-level counts. The count table is the typical starting point for downstream analysis.

Common Problems and How to Avoid Them

  • GC bias – PCR amplification during library prep can over-represent regions with certain GC content. Use unique molecular identifiers (UMIs) or library prep methods that reduce amplification cycles.
  • Read alignment ambiguity – Reads that map to multiple locations (e.g., paralogous genes) are often discarded, losing information. Use tools that handle multi-mapping reads or assign them proportionally.
  • Batch effects – Samples processed on different days or by different technicians can introduce systematic variation. Include batch information in the model and use tools like ComBat-seq.
  • Low mapping rate – If many reads do not map, check for contamination (e.g., rRNA, adapter dimers) and re-run trimming.
  • Gene length bias – Longer genes produce more reads purely by chance. Normalize with RPKM/FPKM or better, use TPM (Transcripts Per Million) which is length-normalized and depth-normalized in a way that is comparable across samples.

How to Choose Normalization Methods

RPKM and FPKM (Fragments Per Kilobase of transcript per Million mapped fragments) are older methods that are easy to compute but have been criticized because the total number of mapped reads is influenced by the most highly expressed genes. TPM is recommended for comparing expression across samples because it normalizes for transcript length and then scales the sum of all TPMs to 1 million, making the values more interpretable. For differential expression, tools like DESeq2 and edgeR use median-of-ratios and TMM (trimmed mean of M-values) respectively, which are more robust to composition bias. If you are comparing within a single gene across conditions, raw counts or RPM may suffice, but for across-gene comparisons, use TPM.

Interpreting the Results: What Do the Numbers Mean?

A gene with an RPKM of 10 is generally considered expressed at a low level, while values above 100 are moderate to high. However, thresholds vary by tissue and library type. The key is to compare relative changes: a 2-fold change with a low count is less reliable than a 2-fold change with a high count. Statistical significance is determined by modeling count distributions (negative binomial) and adjusting for multiple testing (e.g., false discovery rate < 0.05). Always check the actual read counts, not just the fold change, because a gene with 1 read in one sample and 3 in another will show a 3-fold change but is not biologically meaningful.

Frequently Asked Questions

What is the difference between RPKM and TPM?

RPKM normalizes for sequencing depth and gene length, but the total RPKM sum varies between samples because it depends on the RNA composition. TPM first normalizes for gene length, then scales the total to 1 million, so the sum of TPMs is constant across samples. TPM is generally preferred for comparing expression across samples because it is less affected by highly expressed genes.

Why do I get zero counts for many genes?

Zero counts can occur for genes that are not expressed in the cell type, or due to technical dropout where the transcript is present but not captured or sequenced. In single-cell RNA-seq, dropout is common. For bulk RNA-seq, zeros may indicate low expression below the detection limit. Tools like edgeR and DESeq2 handle zeros by adding a small prior count or modeling them separately.

Can I use RNA-seq data to detect mutations?

Yes, RNA-seq can reveal variants in expressed genes, but it is not a substitute for DNA sequencing. RNA-seq only covers exons, and expression level affects the depth of coverage. Variants in genes with low expression may be missed. Also, RNA editing and splicing can create false positives. For reliable variant calling, use DNA-seq.

How many reads do I need per sample?

For differential expression in bulk RNA-seq, a common recommendation is 20-30 million reads per sample for human or mouse. For detecting lowly expressed genes or isoforms, you may need 50-100 million. For single-cell RNA-seq, the number of reads per cell is lower (e.g., 50,000), but the number of cells matters more. The required depth also depends on the organism and the complexity of the transcriptome.

What is the difference between raw counts and normalized counts?

Raw counts are the integer number of reads mapping to each gene. They are not directly comparable between samples because sequencing depth varies. Normalized counts (e.g., RPKM, TPM, DESeq2’s median-of-ratios) adjust for depth and, in some cases, gene length. For differential expression, you should use tools that work with raw counts and apply their internal normalization, not pre-normalized values.

What is a “count matrix” and how do I create one?

A count matrix is a table where rows are genes (or transcripts) and columns are samples, with each cell containing the number of reads assigned to that gene in that sample. You create it by running a quantification tool like featureCounts or HTSeq-count on the aligned BAM files, using a gene annotation file (GTF/GFF). The output is a text file that you can load into R or Python for analysis.

Related

Formula used
in m | Total mapped reads (millions) | million | 25 | 0
in g | Gene length (kb) | kb | 1.5 | 0
in t | Total reads in sample (millions) | million | 30 | 0
out rpkm | RPKM | - | (m * 1000000) / (g * 1000 * t) | 2
out rpm | Reads per million | - | (m * 1000000) / t | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →