Skip to main content
v2026.11,986 entries · CC-BY 4.0

Cutadapt: Adapter Trimming Options and Order of Operations

Cutadapt removes adapters and low-quality ends from sequencing reads. See its adapter types, error and overlap defaults, and processing order.

Written and maintained by CASRAI Editorial Board

Published

On this page

Cutadapt is a free command-line program that finds and removes adapter sequences, primers, poly-A tails and other unwanted sequence from high-throughput sequencing reads, and can also trim low-quality ends and filter reads by length. It tolerates sequencing errors when it searches for an adapter, which is why it is used before read mapping or assembly. This page describes the documented options and the order in which Cutadapt applies them.

Short answer

Cutadapt, written by Marcel Martin, reads FASTA or FASTQ files, searches each read for adapter sequences you specify (allowing mismatches, insertions and deletions), removes them, and writes the trimmed reads to a new file. Its documentation (version 5.2, changelog entry dated 2025-10-23) describes quality trimming first, then adapter trimming, then length trimming, then filters. A basic call from the user guide is cutadapt -a AACCGGTT -o output.fastq input.fastq.gz.

Definition and scope

The original description is Martin M. (2011), “Cutadapt removes adapter sequences from high-throughput sequencing reads”, EMBnet.journal 17(1), published 2011-05-02 (doi:10.14806/ej.17.1.200). The abstract explains the motivating case: in small RNA sequencing, reads are usually longer than the RNA molecule and therefore contain part of the 3′ adapter, which must be found and removed, tolerating errors, before the reads are mapped. The paper reports support for 454, Illumina and SOLiD (colour space) data and two adapter trimming algorithms, and describes the program as MIT-licensed. The changelog notes that version 1.0 was named because of that article and asks users to cite it.

The documentation covers several jobs under one tool:

  • Removing adapters of several kinds from the 3′ end, 5′ end or either end of a read.
  • Trimming low-quality bases from the ends, including a variant for two-colour instruments (--nextseq-trim).
  • Removing a fixed number of bases (-u / --cut) or shortening reads to a fixed length (--length).
  • Filtering reads that are too short, too long, contain too many N bases or that did or did not contain an adapter.
  • Demultiplexing reads into separate files by adapter or barcode name, and trimming paired-end data.

It does not report sequence quality on its own; a quality report tool such as FastQC is a separate program. For other trimming programs on this site see fastp and Trimmomatic.

How Cutadapt is used in practice: the order of operations

The user guide states that Cutadapt processes each read in a fixed sequence, and the sequence matters for how options interact. This is the order described there:

  1. Read modifications are applied first, in the order they are listed under “Additional read modifications” in cutadapt --help. Within this group, quality trimming is done before any adapter trimming, and adapter trimming is done before length trimming (--length / -l). Fixed-base removal with -u is applied before adapter trimming; poly-A trimming (--poly-a, added in version 4.4) is applied after it.
  2. Filters (too short, too long, too many N bases, untrimmed and so on) are applied next, again in the order listed in the help.
  3. Output is written, with compression chosen from the output file name.

Two consequences follow directly from this order. First, because quality trimming comes before adapter search, a quality cutoff shortens the read before the adapter is looked for, so the same adapter and the same cutoff set differently can give a different result. Second, reads trimmed down to length zero are kept unless a filter such as -m removes them, so an explicit minimum length is how empty or very short reads are dropped.

Quality trimming

The -q option trims low-quality bases. A single value, such as -q 10, trims the 3′ end. Two comma-separated values apply to the 5′ and 3′ ends respectively: -q 15,10 trims the 5′ end with cutoff 15 and the 3′ end with cutoff 10, and -q 15,0 trims the 5′ end only. The guide notes that for Illumina data trimming only the 3′ end is sufficient, because quality degrades towards the 3′ end. For two-colour instruments (the guide names NextSeq and NovaSeq), --nextseq-trim=20 works like -q but ignores the quality of G bases, which can be called when a cycle produced no signal.

Error tolerance and minimum overlap

Cutadapt matches adapters allowing mismatches, insertions and deletions. The default maximum error rate (-e / --error-rate) is 0.1, meaning 10 percent of the matched length; if you give an integer of 1 or more it is read as a number of errors allowed in a full-length match. --no-indels disables insertions and deletions. The guide’s example is that the adapter ADAPTER will also match ADABTER, ADAPTR and ADAPPTER.

The default minimum overlap (-O) is 3 bases: a partial adapter at the end of a read must overlap at least that much to be removed. The minimum overlap cannot be set for anchored adapters, which must always match in full. Search parameters can also be written inline per adapter, for example ADAPTER;o=5, ;noindels, ;anywhere, ;required, ;optional or ;rightmost, and for adapters read from a file as file:adapters.fa;min_overlap=5;noindels.

Paired-end data, multiple adapters and demultiplexing

For paired-end reads, the uppercase options (-A, -G, -B, -U) apply to the second read and mirror -a, -g, -b and -u. Output for read 1 goes to -o and for read 2 to -p (--paired-output). A minimum length can be given per read as -m LEN1:LEN2, and omitting one value leaves that read unrestricted, so -m 17: constrains read 1 only. --pair-filter decides how the two reads combine: any (the default) discards the pair if either read meets the filter criterion, both discards only if both do, and first uses read 1 alone.

When an option such as -a is repeated, every read is searched against all adapters but only the best-matching adapter is removed: matches failing the overlap or error limits are discarded, the highest alignment score wins, and a tie goes to the adapter given first. To remove more than one adapter from the same read, use -n / --times, which repeats the search until nothing matches or the count is reached.

For demultiplexing, name the adapters and put {name} in the output file name, as in cutadapt -a one=TATA -a two=GCGC -o trimmed-{name}.fastq.gz input.fastq.gz. Each read goes to the file for the adapter found, and reads with no adapter go to a file in which {name} becomes unknown. The guide also documents combinatorial dual-index demultiplexing with {name1} and {name2}. Where reads carry molecular barcodes, see unique molecular identifiers (UMIs) for the concept.

Adapter types

The data table below lists every adapter type in the user guide’s adapter-type table, with the command-line option and syntax, and notes taken from the guide. Two points in the guide are easy to miss. A regular 5′ adapter is found if it occurs in full anywhere in the read or partially at the start, and the adapter plus the sequence before it is removed; the guide adds that unless the adapter may occur degraded you probably want an anchored 5′ adapter. IUPAC wildcard characters such as N are allowed inside adapter sequences.

Worked example: a linked adapter

A linked adapter combines a 5′ and a 3′ adapter, separated by three dots. The guide’s example is cutadapt -a ^FIRST...SECOND, with these results:

  • FIRSTmysequenceSECONDextrabases becomes mysequence.
  • FIRSTmyseque becomes myseque (a partial 3′ adapter is not required to be present in full).
  • anotherreadSECOND is left untouched, because the anchored 5′ adapter was not found.

With --discard-untrimmed, a read with a linked adapter is kept only if all required adapters were found. The guide also warns that before version 2.0 the 5′ part of a linked adapter was anchored automatically; scripts written for earlier versions need the ^ added to behave the same way.

Where it matters: reproducibility and methods reporting

Because results depend on defaults (error rate 0.1, minimum overlap 3, a processing order, single-core operation) and on version-specific behaviour (linked-adapter anchoring before and after 2.0, the changed poly-T handling for read 2 in 4.5), a methods section that says only “reads were trimmed with Cutadapt” cannot be reproduced. The documented options suggest this checklist of what to record:

  • The Cutadapt version (the documentation read for this page is 5.2; versions 5.1 and 5.0 are dated 2025-05-28 and 2024-12-13 in the changelog).
  • Each adapter sequence, its type (-a, -g, -b, anchored, non-internal or linked) and where the sequence came from, such as the library preparation kit documentation.
  • Any non-default value of -e, -O, -n, -q or --nextseq-trim, and whether --no-indels was used.
  • Filters: -m, -M, --max-n, --max-ee, --discard-untrimmed and, for paired reads, the --pair-filter setting.
  • The summary report. By default Cutadapt prints a full report; --report=minimal prints a tab-separated header and one row with columns including in_reads, too_short, too_long, too_many_n, out_reads, w/adapters, qualtrim_bp and out_bp. The guide also documents --json output.

For running on shared compute, Cutadapt uses one core by default. -j N / --cores N sets the number of cores (multi-core support was added in version 1.15), and -j 0 detects the number of available cores automatically (added in 1.18) and respects cpuset limits on clusters. Compressed input is detected from the file name (gzip .gz, bzip2 .bz2, xz .xz, zstandard .zst); gzip output defaults to compression level 4, and -Z sets level 1, which is faster but gives larger files.

Installation routes listed in the documentation are Conda through the Bioconda channel (with the bioconda and conda-forge channels and strict channel priority), pipx, pip into a virtual environment, a Debian/Ubuntu package, Windows and a FreeBSD port. The version 5.2 notes record that support for Python 3.9 was dropped.

Common misunderstandings

“Cutadapt only matches exact adapters”

It does not. With the default error rate of 0.1 and minimum overlap of 3, short partial matches and adapters with a few errors can be trimmed. Raising -O or lowering -e makes the search stricter.

“A 5′ adapter is always anchored”

A regular 5′ adapter (-g ADAPTER) is not anchored; it can be found anywhere in the read. Anchoring is requested with ^, as in -g ^ADAPTER.

“Several -a options remove several adapters”

Only the best match is removed per search. Use -n to repeat the search.

“Cutadapt uses all available cores”

The default is one core; add -j explicitly.

“Quality trimming happens after adapter removal”

The guide states the opposite: quality trimming comes before adapter trimming.

“Trimmed reads of length zero are removed automatically”

They are written unless a length filter such as -m is set.

FAQ

What is Cutadapt used for?

Removing adapters, primers and similar unwanted sequence from sequencing reads, trimming low-quality ends and filtering reads by length or content before mapping or assembly.

How should Cutadapt be cited?

The changelog asks users to cite Martin M. (2011), EMBnet.journal 17(1), doi:10.14806/ej.17.1.200.

Which input formats does it accept?

FASTA and FASTQ, plain or compressed, with the compression type detected from the file name.

Does it work on paired-end reads?

Yes, with -A, -G, -B and -U for the second read, -o and -p for output, and --pair-filter to control filtering.

Sources

  • Cutadapt documentation, user guide (version 5.2), https://cutadapt.readthedocs.io/en/stable/guide.html, read 2026-11-14.
  • Cutadapt documentation, reference guide, https://cutadapt.readthedocs.io/en/stable/reference.html, read 2026-11-14.
  • Cutadapt documentation, installation, https://cutadapt.readthedocs.io/en/stable/installation.html, read 2026-11-14.
  • Cutadapt documentation, changelog, https://cutadapt.readthedocs.io/en/stable/changes.html, read 2026-11-14.
  • Martin M. (2011). Cutadapt removes adapter sequences from high-throughput sequencing reads. EMBnet.journal 17(1). https://doi.org/10.14806/ej.17.1.200, read 2026-11-14.

Data: Cutadapt adapter types, options and syntax (documentation 5.2)

Adapter types from the Cutadapt user guide's adapter-type table, with the command-line option, syntax and the behaviour notes the guide gives for each, compiled from the official documentation.

Period covered: 2026.

Cutadapt adapter types, options and syntax (documentation 5.2)
Adapter typeOptionSyntaxNote from the user guide
Regular 3'-a-a ADAPTERStandard 3' adapter search
Regular 5'-g-g ADAPTERFound in full anywhere or partially at start; adapter and preceding sequence removed
Non-internal 3'-a-a ADAPTERXVariant syntax listed in the adapter-type table
Non-internal 5'-g-g XADAPTERVariant syntax listed in the adapter-type table
Anchored 3'-a-a ADAPTER$Minimum overlap cannot be set; always full length
Anchored 5'-g-g ^ADAPTERMinimum overlap cannot be set; always full length
Either end-b-b ADAPTER3' or 5' adapter, whichever end it is found at
Linked 3'-a-a ^ADAPTER1...ADAPTER25' and 3' adapters combined; not anchored by default since version 2.0
Linked 5'-g-g ADAPTER1...ADAPTER25' and 3' adapters combined; not anchored by default since version 2.0

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Cutadapt: Adapter Trimming Options and Order of Operations

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →