The Grammar Vault / Reference

Curly Brackets

Curly brackets { }, also called braces, are a matched pair of grouping symbols. You’ll often see them in mathematics and code. Their exact role depends on the notation or programming language.

A pair of lavender curly braces surrounds three small paper disks.

How to recognize it

Look for the paired symbols { }. Determine their role from the surrounding mathematical notation or programming language.

Examples explained

Set

{2, 4, 6}

Why it works: The braces enclose three elements of one set.

Code block

if (ready) { start(); }

Why it works: In JavaScript, the braces group the statement that runs when the condition is true.

Prose contrast

The meeting (now postponed) was on Tuesday.

Why it works: Ordinary prose uses parentheses for this aside, not curly brackets.

Common mix-up

Braces, square brackets, and parentheses are not interchangeable. Their conventions depend on the context; programming languages also differ.

Quick check

Which symbols enclose a set in “{2, 4, 6}”?

Reveal the answer and explanation

Curly brackets, or braces. The commas separate the set’s elements.

Related terms

parentheses · square brackets

Browse the Vault · A–Z

Open a category to browse alphabetically, or search above for a word or term.

Put it into practice

Build your writing skills.

Explore grammar courses