Search Tools

Compare gene-level counts within a single RNA-seq library while distinguishing effective-length and library-size normalization.

TPM is normalized to a total of one million across entered rows only. CPM uses the selected library denominator, so its total is below one million when the entered rows do not cover the whole library.

Provide a previously calculated effective length in bp. This does not reproduce RSEM gene-level TPM across multiple transcripts, which sums transcript TPMs.

What to calculate
Gene dataRequired
RowGene IDcount (count)Effective length (bp)Actions
1
2

Paste 3 tab-separated columns into the leftmost field. Up to 1000 rows.

Enter 3 columns: gene ID, count, and effective length (bp). TSV paste is supported. Blank rows are excluded; duplicate IDs are not combined.

Results

Results update automatically when the required values are entered.

Method, applicability and sources

Calculation method

RPK_i = count_i ÷ (effective_length_i [bp] ÷ 1000). TPM_i = (count_i ÷ effective_length_i) ÷ Σ_j(count_j ÷ effective_length_j) × 1,000,000. CPM_i = count_i ÷ library denominator × 1,000,000. Sum over valid entered rows; a count of 0 contributes 0. If all entered counts are 0, the TPM denominator is 0 and calculation is impossible. Round only for display: up to 6 decimal places, with scientific notation for very small values.

Worked example (hypothetical values)

Hypothetical example: A = 100 counts and 1,000 bp; B = 100 counts and 2,000 bp; C = 0 counts and 1,000 bp. Using the entered-row sum as denominator gives TPM A ≈666,666.667, B ≈333,333.333, C = 0; CPM A = 500,000, B = 500,000, C = 0.

Applicability and limitations

A single RNA-seq library with gene-level counts and effective lengths already calculated. Fractional values, such as expected counts, are allowed. Does not map FASTQ/BAM reads, estimate fragment length, perform RSEM EM estimation, aggregate transcript TPMs into gene TPMs, apply TMM/DESeq2 normalization, test differential expression, or log-transform values.

Methods used

  • TPM (RSEM WriteResults.h @800234e0 (definition reference)): scope Entered gene-level counts and effective lengths from a single library; region Global
  • CPM (edgeR 4.10.5 cpm (log=FALSE, no normalization factors)): scope Entered-row sum or user-specified library total; region Global

Method and sources

Method: RSEM WriteResults.h @800234e0 (2026-08-03), length correction and TPM rescaling; edgeR 4.10.5 cpm definition (2026-10-05); calculator method v1. Data recorded: 2026-11-14.