It is important that RNA molecules representing members of gene families are distinguished in expression analyses, and even greater resolving power may be required to identify allelic variants of transcripts in order to investigate imprinting or to study the distribution of mutant genes in tissues. Ligase-mediated gene detection allows precise distinction of DNA sequence variants, but it is not known if ligases can also be used to distinguish variants of RNA sequences. Here we present conditions for efficient ligation of pairs of DNA oligonucleotides hybridizing next to one another on RNA strands, permitting discrimination of any single nucleotide probe-target mismatch by a factor of between 20- and 200-fold. The mechanism allows padlock probes to be used to distinguish single-nucleotide variants in RNA. Ligase-mediated gene detection could therefore provide highly sensitive and accurate ligase-mediated detection and distinction of RNA sequence variants in solution, on DNA microarrays, and in situ.