A literary device is a technique a writer uses to produce a specific effect in their writing. Literary devices shape how readers experience a story — they create emphasis, build tension, establish mood, and convey meaning that goes beyond the literal words on the page.

Literary Devices vs. Literary Elements

These two terms are often confused. Literary elements are the structural components every story must have: plot, character, setting, theme, conflict, and point of view. They are not optional. Without them, you do not have a narrative.

Literary devices are optional techniques a writer chooses to use. Metaphor, foreshadowing, irony, and symbolism are all literary devices. A story can exist without any of them — but most strong writing deploys several.

Think of it this way: literary elements are the skeleton. Literary devices are the muscles, skin, and expressions that make the skeleton come alive.

Categories of Literary Devices

Literary devices fall into four broad groups.

Figurative Language

Figurative language devices create meaning through comparison, exaggeration, or non-literal expression. These are the devices most people learn first.

DeviceWhat It DoesExample
MetaphorCompares two things directly without “like” or “as""The world is a stage”
SimileCompares two things using “like” or “as""Her voice was like gravel”
PersonificationGives human qualities to non-human things”The wind whispered through the trees”
HyperboleExaggerates for emphasis”I’ve told you a million times”
OxymoronCombines contradictory terms”Deafening silence”
SynecdocheUses a part to represent the whole (or vice versa)“All hands on deck”
MetonymySubstitutes a related term for the thing itself”The pen is mightier than the sword”

Narrative Devices

Narrative devices control how a story unfolds across time and perspective. They shape structure and pacing.

DeviceWhat It DoesExample
ForeshadowingHints at events that happen laterA character noticing storm clouds before disaster strikes
FlashbackInterrupts the timeline to show a past eventA war scene cutting to a soldier’s childhood memory
Chekhov’s GunEvery significant detail introduced must pay offA pistol shown in Act 1 is fired in Act 3
Dramatic ironyThe audience knows something a character does notThe reader knows the killer’s identity while the detective searches
In medias resStarts the story in the middle of the actionOpening with a car chase before explaining who is driving
Deus ex machinaAn improbable solution appears to resolve the plotAn unknown relative leaves the protagonist a fortune
CliffhangerEnds a chapter or scene at a point of high tension”She opened the door — and froze.”

Sound Devices

Sound devices affect the rhythm and auditory quality of prose and poetry. They are especially important in poetry, dialogue, and lyrical prose.

DeviceWhat It DoesExample
AlliterationRepeats initial consonant sounds”Peter Piper picked a peck”
AssonanceRepeats vowel sounds within words”The rain in Spain falls mainly on the plain”
OnomatopoeiaUses words that imitate sounds”The bees buzzed, the clock ticked”
ConsonanceRepeats consonant sounds within or at the end of words”Pitter-patter, pitter-patter”

Rhetorical and Structural Devices

These devices shape argument, emphasis, and the architecture of sentences and paragraphs.

DeviceWhat It DoesExample
RepetitionRepeats a word or phrase for emphasis”Never, never, never give up”
ParallelismUses similar grammatical structures in sequence”I came, I saw, I conquered”
JuxtapositionPlaces contrasting elements side by sideDescribing extreme wealth next to extreme poverty
AnaphoraRepeats a word at the start of successive clauses”We shall fight on the beaches, we shall fight on the landing grounds”
AllegoryUses an extended metaphor where characters and events represent abstract ideasAnimal Farm representing the Russian Revolution
MotifA recurring element that reinforces themeThe green light in The Great Gatsby
SymbolismAn object or image that represents something beyond its literal meaningA white dove representing peace

How to Use Literary Devices in Your Writing

Knowing the definitions is step one. Using them effectively is the real skill.

Start with purpose. Every device should serve your story. A metaphor should clarify or deepen meaning, not just sound poetic. Foreshadowing should create tension, not confuse readers. If a device does not make the writing better, cut it.

Layer devices naturally. Strong writing often uses multiple devices at once without calling attention to any of them. A sentence can contain a metaphor, alliteration, and parallelism simultaneously — and the reader will simply feel that it works.

Match devices to tone. Literary fiction leans on symbolism and imagery. Thrillers rely on foreshadowing, dramatic irony, and cliffhangers. Romance uses hyperbole, metaphor, and internal monologue. The devices you choose should fit your genre and voice.

Read with attention. The fastest way to internalize literary devices is to notice them in books you admire. When a sentence stops you — when it makes you feel something unexpected — ask what technique the writer used. That is your education.

Quick Reference: 25 Literary Devices

For fast lookup, here is every device covered above in a single alphabetical list.

DeviceCategoryOne-Line Definition
AllegoryRhetoricalExtended metaphor where the entire story represents something else
AlliterationSoundRepetition of initial consonant sounds
AnaphoraRhetoricalRepetition of a word at the start of successive clauses
AssonanceSoundRepetition of vowel sounds within words
Chekhov’s GunNarrativeEvery significant detail must pay off later
CliffhangerNarrativeEnding a scene at a moment of high tension
ConsonanceSoundRepetition of consonant sounds within or at the end of words
Deus ex machinaNarrativeAn improbable solution resolves the plot
Dramatic ironyNarrativeThe audience knows something a character does not
FlashbackNarrativeA jump backward in time to show a past event
ForeshadowingNarrativeHints at events that happen later
HyperboleFigurativeExaggeration for emphasis
In medias resNarrativeStarting a story in the middle of the action
JuxtapositionRhetoricalPlacing contrasting elements side by side
MetaphorFigurativeA direct comparison without “like” or “as”
MetonymyFigurativeA related term substituted for the thing itself
MotifRhetoricalA recurring element that reinforces theme
OnomatopoeiaSoundWords that imitate sounds
OxymoronFigurativeCombining contradictory terms
ParallelismRhetoricalSimilar grammatical structures used in sequence
PersonificationFigurativeGiving human qualities to non-human things
RepetitionRhetoricalRepeating words or phrases for emphasis
SimileFigurativeA comparison using “like” or “as”
SymbolismRhetoricalAn object representing something beyond its literal meaning
SynecdocheFigurativeUsing a part to represent the whole