ToolNimba
โœ๏ธ Text Tools

Literary Devices Explained: Definitions, Types, and Examples

Shihab Mia By Shihab Mia June 27, 2026 8 min read

Colorful illustration of literary devices like metaphor, symbolism, and irony as floating book and language shapes

Quick answer

Literary devices are techniques writers use to convey meaning or create an effect beyond the literal words on the page. They include figurative-language devices such as metaphor, simile, personification, and hyperbole, plus structural and sound devices such as foreshadowing, imagery, symbolism, irony, alliteration, allusion, juxtaposition, motif, and tone. A literary device is the broad category, and figurative language is one subset of it.

Every memorable line you have ever quoted likely owes its power to a literary device. These are the deliberate tools a writer reaches for to make language do more than simply report facts. A device can compress a complex feeling into a single image, plant a clue that pays off chapters later, or make a sentence ring in your ear long after you read it.

In this guide we define literary devices clearly, sort the major types into easy categories, and show a plain example of each. We also cover how literary devices differ from figurative language, the mistakes students make most often, and a quick reference table you can keep on hand while reading or writing.

What is a literary device?

A literary device is any technique a writer uses on purpose to convey meaning, shape a reader's response, or create a specific effect. Devices work at every level of a text, from a single word choice to the structure of an entire novel. They are not decoration. A well-chosen device carries meaning that plain statement cannot, which is why analysis of literature so often comes down to naming the device and explaining what it does.

It helps to split devices into two broad families. Figurative-language devices bend the literal meaning of words, comparing or exaggerating to create an image or feeling. Structural and sound devices shape how a text is built or how it sounds, guiding pace, pattern, and emphasis. Both families count as literary devices, and skilled writers layer them together.

Literary devices vs figurative language

These two terms get used as if they mean the same thing, but they do not. The relationship is simple once you see it: a literary device is the broad category, and figurative language is a subset inside it. Every figure of speech is a literary device, but not every literary device is figurative language.

Figurative language specifically means language that departs from literal meaning, such as metaphor, simile, personification, and hyperbole. Devices like foreshadowing, alliteration, irony, and motif are literary devices too, yet they are not figures of speech in that narrow sense. Irony is a clear test case: it depends on a gap between expectation and reality rather than on any bent word, and its stage-focused form, dramatic irony, works purely through what the audience knows that a character does not. If you want the deeper distinction, our companion piece on figurative language walks through the figures of speech in detail, and the guide to rhetorical devices covers the persuasion-focused cousins of these tools.

How the terms nest inside each other

TermWhat it coversExample devices
Literary deviceThe broad category of all deliberate writing techniquesIrony, symbolism, foreshadowing, metaphor
Figurative languageA subset that bends literal meaningMetaphor, simile, personification, hyperbole
Rhetorical deviceA subset aimed at persuasionAnaphora, rhetorical question, antithesis

The main types of literary devices, with examples

Below are the devices you will meet most often in school, in book clubs, and in your own writing. Each entry gives a short definition and a clear example so you can recognize it on sight.

Figurative-language devices

  • Metaphor: a direct comparison that states one thing is another. Time is a thief.
  • Simile: a comparison using like or as. Her courage was like a shield.
  • Personification: giving human qualities to non-human things. The wind whispered through the trees.
  • Hyperbole: deliberate exaggeration for effect. I have told you a million times.
  • Metonymy: naming something by a closely linked idea. The White House issued a statement.
  • Oxymoron: two contradictory words paired for effect. A deafening silence filled the room.

Structural and sound devices

  • Imagery: vivid sensory language that paints a picture. The crimson sunset bled into the ocean.
  • Symbolism: an object or image that stands for a larger idea. A dove represents peace.
  • Foreshadowing: hints that prepare the reader for what comes later. A storm gathered on the horizon as they argued.
  • Irony: a gap between what is said or expected and what is true. A fire station burns down.
  • Alliteration: repeated initial consonant sounds. Peter Piper picked a peck of peppers.
  • Allusion: a reference to another work, person, or event. He was a real Romeo at the dance.
  • Juxtaposition: placing contrasting ideas side by side for effect. Wealthy mansions lined a street of broken sidewalks.
  • Motif: a recurring image or idea that builds a theme. Repeated references to clocks and time throughout a story.
  • Onomatopoeia: a word that imitates the sound it names. The bacon sizzled and the door creaked.
  • Tone: the writer's attitude toward the subject. A sarcastic tone signals the writer is not sincere.

Notice how these devices often work together. A single scene can use imagery to set a mood, symbolism to deepen it, and foreshadowing to point ahead, all at once. Reading well means spotting that layering and asking what effect each layer creates.

Literary devices grouped by what they do

Sorting devices by their job rather than their form makes them easier to use and to explain. When you write, you can pick a tool for the effect you want. When you analyze, you can move straight from the device to its purpose. Most devices do one of four jobs: they create images, shape sound, build structure, or steer meaning beneath the literal words.

Literary devices sorted by their job

PurposeWhat it achievesDevices that do it
Creating imagesBuilds a picture or comparison in the reader's mindMetaphor, simile, imagery, personification
Shaping soundAdds rhythm, music, or emphasis to the languageAlliteration, assonance, onomatopoeia, consonance
Building structureOrganizes pace, sequence, and expectationForeshadowing, flashback, motif, juxtaposition
Steering meaningAdds a second layer beneath the literal wordsSymbolism, irony, allusion, tone

These groups overlap, and a strong device often does more than one job at once. A metaphor can create an image and steer meaning in the same breath. If you want a reliable place to check a definition, the Poetry Foundation keeps a broad glossary of literary and poetic terms at https://www.poetryfoundation.org/learn/glossary-terms that is worth bookmarking. For the persuasion-focused branch of these tools, our guide to rhetorical devices shows how the same techniques serve an argument.

Literary devices in famous lines

Seeing a device inside a line you already half-remember makes the definition stick far better than an abstract rule. The examples below are drawn from well-known works now in the public domain, so you can look up the full passage and study the device in context. Each pairs one device with a short line and its source.

One device per famous line, with its source

DeviceFamous lineSource
MetaphorAll the world's a stageShakespeare, As You Like It
SimileO my Luve is like a red, red roseRobert Burns, A Red, Red Rose
PersonificationBecause I could not stop for Death, He kindly stopped for meEmily Dickinson
ImageryThe yellow fog that rubs its back upon the window-panesT. S. Eliot, The Love Song of J. Alfred Prufrock
AlliterationThe fair breeze blew, the white foam flewColeridge, The Rime of the Ancient Mariner
SymbolismThe green light at the end of the dockF. Scott Fitzgerald, The Great Gatsby

Read across the table and you can feel how each device does a different job. Burns reaches for a simile to make love feel fresh and physical, Dickinson turns death into a courteous carriage driver through personification, and Fitzgerald lets a single green light carry a whole novel of longing through symbolism. When you study your own set text, keep a running list like this one, since a handful of lines you can name and explain is worth more in an exam than a long glossary you only recognize.

How to identify a literary device: a step-by-step method

To identify a literary device, read the passage closely, mark any language that is not strictly literal or that repeats, contrasts, or hints, match that move to a device name, and then explain the effect it creates. Naming the device is only half the job. The other half is explaining what it does. Work through these steps each time.

  1. Read the passage closely and underline any language that is not strictly literal or that repeats, contrasts, or hints.
  2. Ask what kind of move the writer is making. Is it a comparison, an exaggeration, a sound pattern, a structural hint, or a contrast?
  3. Match the move to a device name from the list above, such as metaphor, alliteration, or foreshadowing.
  4. Name the effect. What does this device make you feel, expect, or understand that plain language would not?
  5. Connect the effect to the larger meaning of the text, such as its theme, mood, or argument.
  6. Write it up as a sentence: the writer uses [device] to [effect], which supports [meaning].

Example: in the line the city slept under a blanket of fog, you spot non-literal language, identify a comparison and human action, and name two devices, a metaphor (the blanket) and personification (the city slept). The effect is a calm, hushed mood, which might foreshadow a quiet before something disruptive. That is a complete analysis in two sentences.

Common mistakes to avoid

  • Confusing metaphor and simile. A simile uses like or as, while a metaphor states the comparison directly. She is a lion is a metaphor; she fights like a lion is a simile.
  • Naming the device but skipping the effect. Saying a line contains alliteration earns no credit unless you explain what the sound pattern does for the reader.
  • Treating every comparison as a metaphor. Personification, symbolism, and allusion are all distinct. Match the move to the right name.
  • Calling figurative language and literary devices the same thing. Figurative language is a subset. Foreshadowing and irony are devices but not figures of speech.
  • Forcing a device that is not there. Not every sentence hides a technique. Analyze what the text actually does, not what you wish it did.

Good to know: quick reference table

Keep this cheat sheet nearby while you read or revise. It pairs each common device with a one-line cue so you can recognize it fast. If you are studying your own writing, a word counter and a syllable counter can help you track rhythm and length while you experiment with sound devices.

Literary devices cheat sheet

DeviceSpot it whenQuick example
MetaphorOne thing is called another directlyHer smile was sunshine
SimileA comparison uses like or asBrave as a lion
PersonificationAn object acts humanThe clock glared at me
HyperboleAn obvious exaggeration appearsThis bag weighs a ton
ImagerySensory detail paints a sceneThe sour, sharp scent of lemons
SymbolismAn object stands for a big ideaA green light for hope
ForeshadowingAn early hint points aheadDark clouds gathered
IronyReality clashes with expectationA traffic cop loses his license
AlliterationInitial consonant sounds repeatWild and windy
AllusionA reference points to another workA Herculean effort
OxymoronTwo opposite words sit togetherBittersweet goodbye
MetonymyA linked idea stands in for the thingThe crown decided
OnomatopoeiaA word imitates a real soundThe bees buzzed

Once these patterns become familiar, you stop hunting for devices and start noticing them naturally, the way a musician hears chord changes. The same habit of close attention that sharpens your reading also sharpens your writing, since you begin choosing devices on purpose rather than by accident.

In short, literary devices are the deliberate techniques writers use to create meaning and effect, spanning both figurative language and the structural and sound tools that shape a text. Learn the names, practice spotting them, and always explain the effect, not just the label. Do that, and both your reading and your writing will grow noticeably stronger.

Frequently asked questions

What is a literary device in simple terms?

A literary device is a technique a writer uses on purpose to convey meaning or create an effect beyond the plain, literal words. Metaphor, irony, symbolism, foreshadowing, and alliteration are all examples. Devices help a text express feeling, build suspense, or make language memorable rather than simply stating facts.

What is the difference between a literary device and figurative language?

A literary device is the broad category of all deliberate writing techniques, while figurative language is one subset inside it. Figurative language bends literal meaning, as in metaphor or hyperbole. Devices like foreshadowing, irony, and motif are literary devices too, but they are not figures of speech in that narrow sense.

What are the most common literary devices?

The most common literary devices include metaphor, simile, personification, hyperbole, imagery, symbolism, foreshadowing, irony, alliteration, allusion, juxtaposition, motif, and tone. The first four bend literal meaning, while the rest shape structure, sound, or pattern. Most texts you read will use several of these at once.

Is imagery a literary device?

Yes. Imagery is a literary device that uses vivid sensory language to help readers see, hear, smell, taste, or feel a scene. It is not figurative in the strict sense of a comparison, but it is a deliberate technique that creates a strong effect, so it belongs firmly in the literary device family.

What is the difference between a literary device and a rhetorical device?

A literary device is any technique used to create meaning or effect in writing, while a rhetorical device is a subset aimed specifically at persuading an audience. Anaphora, antithesis, and the rhetorical question are rhetorical devices. Many overlap, since a metaphor can build both imagery in a novel and a persuasive point in a speech.

How do I identify a literary device in a text?

Read closely and mark any language that is non-literal, repeats, contrasts, or hints. Decide what kind of move the writer is making, such as a comparison or a sound pattern, then match it to a device name. Finally, explain the effect and connect it to the meaning, mood, or theme of the text.

Why do writers use literary devices?

Writers use literary devices to make language do more than report facts. A device can compress a complex emotion into one image, build suspense through foreshadowing, set a mood with imagery, or make a line stick through sound. Devices add depth, shape the reader's response, and turn plain writing into memorable writing.

Can a sentence contain more than one literary device?

Yes, and strong writing often layers several at once. A single line can pair a metaphor with alliteration, or wrap symbolism inside vivid imagery. When you analyze such a line, name each device separately and explain how they combine, since the shared effect is usually greater than any one device working alone.

Keep reading