Sequence analysis

Pairwise Sequence Alignment

Align two DNA or protein sequences with Needleman–Wunsch (global) or Smith–Waterman (local) and affine gap penalties, with identity, similarity and gap statistics. Runs in your browser.

Pairwise Sequence AlignmentRuns in your browser; nothing is uploaded
Checking your sign-in…

Learn the method behind this result in Bioinformatics Foundations, a Vedicgen course with a certificate · from ₹6,999 + GSTView course

Global and local alignment

A global alignment (Needleman–Wunsch) aligns two sequences from end to end and suits sequences of similar length that are related along their whole length. A local alignment (Smith–Waterman) finds the best-scoring region shared by the two sequences and ignores the rest, which suits a domain inside a longer protein or a read against a longer reference.

Both are computed exactly by dynamic programming. This tool uses affine gap penalties, in which opening a gap costs more than extending it, so a single long indel is preferred to many short ones, as in real sequence evolution.

Scoring

DNA is scored with a match reward of +2 and a mismatch penalty of −3, with a gap-open penalty of 5 and a gap-extension penalty of 2. Proteins are scored with the BLOSUM62 substitution matrix, a gap-open penalty of 11 and an extension penalty of 1, similar to the BLASTP defaults. A gap of length L costs open + extend × (L − 1).

Reading the result

In the middle line, | marks an identical position, : a positive BLOSUM62 score (a conservative substitution in proteins), . a mismatch and a space a gap. Identity is the fraction of aligned columns with identical residues; the alignment score depends on the scoring scheme and is only comparable between alignments scored the same way.

Cite, link or share this tool

Cite this tool

Solagene. Pairwise Sequence Alignment [online tool]. Nayancode, Solagene; 2026. Available at: https://solagene.com/nayancode/tools/pairwise-sequence-alignment/ (accessed 2026-11-23).

Add it to your lab or course page

<a href="https://solagene.com/nayancode/tools/pairwise-sequence-alignment/" title="Free Pairwise Sequence Alignment by Solagene">Pairwise Sequence Alignment</a> (free, runs in your browser) by <a href="https://solagene.com/">Solagene</a>

FAQ

Frequently asked questions

Not answered here? Send us your question and we will reply by e-mail.

Up to a few thousand residues each: the alignment matrix grows with the product of the two lengths, and the browser limit is about 25 million cells. For database searches use BLAST.

No. BLAST is a heuristic that searches a database quickly; this tool computes the exact optimal alignment of two sequences you supply.

No. The calculation runs in your browser with JavaScript. Nothing you paste is sent to a server, which makes the tool safe for unpublished or confidential sequences.

Work with us

Want this done for you?

Send us your data and a short note. We reply with a fixed price.

Sent securely to Solagene. Your details are used only to answer this request.

Or order directly: Order an analysis.