CatsBehavior & training

Why do cats like boxes? If it fits, the cat sits (even if it's imaginary)

Cats love boxes because enclosed spaces feel safe, warm and perfect for ambushing. Studies show boxes lower shelter cats' stress, and cats even sit in squares that are optical illusions.

Photo of cat, face, cardboard

The short version

  • Boxes give cats a safe, enclosed spot to hide, watch and nap, which matters to an animal that is both predator and prey.
  • In a Dutch study, shelter cats given a hiding box adapted to their new surroundings faster than cats without one.
  • In a 2021 citizen-science study, cats sat inside an optical-illusion square about as often as a real square drawn on the floor.
  • Boxes are also warm, and many cats like snug spaces that press against their bodies.
  • A cat that hides much more than usual may be stressed or unwell, so notice changes.

Cats like boxes because an enclosed space feels safe. A box lets a cat hide, rest and watch the world without being seen, which suits an animal that is both a skilled ambush hunter and small enough to be someone else's dinner. Research even shows boxes help stressed cats settle in. And, in a finding that delighted cat people everywhere, cats will sit in a "box" that's nothing more than an optical illusion on the floor.

The science of "if I fits, I sits"

Boxes lower stress

In a 2014 study at Utrecht University in the Netherlands, researchers looked at cats newly arrived at an animal shelter, an unfamiliar and stressful place. Half the cats got a hiding box; half didn't. The cats with boxes adapted to their new environment faster and showed lower stress scores in the first days than cats without one. The researchers concluded that a hiding box is an important resource for helping cats cope with a new environment.

This lines up with how cats handle trouble. When something worries them, they don't usually confront it; they hide and watch. A box is a ready-made hiding place.

Cats fall for optical illusions

In 2021, researcher Gabriella Smith and colleagues at the City University of New York turned the internet's #CatSquare trend into science. Owners printed out shapes and taped them to the floor at home:

Shape on the floor What it was
A real square A square outline
A Kanizsa square Four "Pac-Man" shapes with their mouths facing in, which trick human eyes into seeing a square that isn't there
A control The same four "Pac-Men" turned outward, so no square appears

The result? The cats sat inside the illusory square about as often as the real square, and more often than the control shape. The researchers concluded that cats may perceive the illusion much as we do, and are attracted to it as if it were a real enclosed space. Only a small number of owners completed all six days of testing, so it's an early result, but it's a fun one.

Smith told NPR there are two informal theories for the box obsession: snug pressure on the body may feel comforting, like snuggling with littermates as a kitten, and as ambush predators, cats are drawn to hiding spots.

More reasons cats love boxes

  • Warmth: cats are comfortable at higher temperatures than people, and cardboard is a decent insulator.
  • Stalking HQ: a box is the perfect place to wait, eyes glowing, for an unsuspecting ankle.
  • Scratching and chewing: cardboard is satisfying to shred.
  • New smells: a box from the store or a delivery truck is full of interesting scents.
  • It's theirs now: rubbing and sitting in it covers it with their scent.

Fun box experiments to try at home

  • The tape square: tape a square about 20 inches on each side on the floor and see how long it takes your cat to sit in it.
  • The illusion: cut four paper circles, snip a quarter wedge out of each, and arrange them with the gaps facing inward. Science says your cat might just sit in the middle.
  • Box upgrade: cut a doorway in a box, put a soft blanket inside, and see if it beats the fancy bed.
  • The double-decker: stack two boxes with holes between them for a cat condo.

Just remove tape, staples, string and plastic first, and never let a cat play in a box that could be sealed, crushed or recycled with a cat inside.

Give your cat enough hiding places

Hiding places aren't a luxury for cats; they're part of a healthy home, especially in busy households, multi-cat homes and homes with dogs or small children. Offer:

  • a box or covered bed in a quiet room;
  • high perches, like shelves or a cat tree, where your cat can watch from above;
  • a hiding spot near, but not in, the litter box area; our guide to litter box set-up explains why location matters;
  • a carrier left out with a blanket inside, so it becomes a familiar hideout instead of a vet-visit trap.

Note: If your cat suddenly starts hiding much more than usual, stops eating or avoids the litter box, it may be stressed, in pain or unwell. Check with your vet, especially if other changes, like vomiting, come with it.

Best types of boxes and hideaways

Hideaway Why cats like it Tips
Cardboard shipping box Snug, scratchable, smells interesting Remove tape, staples and plastic
Box with a cut-out door Feels like a den Cut the opening just big enough for your cat
Paper shopping bag Crinkly, exciting Cut off handles to prevent tangling
Covered cat bed Soft and enclosed Place in a quiet spot
Cat tree with a cubby Height plus hiding Great for multi-cat homes
Carrier left open Becomes a familiar safe space Makes vet trips easier

Leaving your cat's carrier out as a regular hiding spot, with a soft blanket inside, can make travel and vet visits much less stressful.

Box safety

  • Remove tape, staples, string and packing materials
  • Avoid plastic bags, which can suffocate or tangle cats
  • Check boxes before recycling or closing them; a sleeping cat may be inside
  • Don't stack heavy items on a box your cat uses

Boxes for stressed or new cats

Hiding is a key coping strategy for cats. New cats, shy cats and cats in unfamiliar places (like shelters or boarding) often settle faster when they have somewhere to hide. If you're adding a new cat to your home, give each cat several hiding spots. See how to introduce a new cat.

Do big cats like boxes too?

Videos from zoos and sanctuaries show lions, tigers and other big cats investigating and climbing into large boxes, suggesting the attraction to enclosed spaces runs throughout the cat family.

The final word

Your cat's box obsession isn't silly at all: it's a smart, safe-space strategy from a small predator that likes to keep an eye on things. So the next time a $40 cat bed loses out to the box it came in, take comfort in knowing it's science. For more feline mysteries, read about why cats knead, why cats purr and what catnip does to cats.

Cats use their whiskers to judge whether a box is a good fit; learn how in why do cats have whiskers.

Questions pet owners ask

Why do cats sit in squares taped on the floor?
A taped outline seems to work like a box without walls: it marks out a defined space. A 2021 study found cats sat in a taped square, and even in an illusion of one, more often than in a shape that didn't form a square.
Why does my cat ignore the expensive bed and sit in its box?
Because a box is enclosed, a good size, warm and smells interesting. Try putting the bed inside the box, or choose a cozy, covered bed with high sides.
Are cardboard boxes safe for cats?
Generally yes. Remove tape, staples, string and plastic, and don't leave a cat in a box that could be closed, crushed or thrown out by mistake.
Do cats need hiding places?
Yes. Hiding is a normal way for cats to cope with stress. A box, a covered bed or a shelf gives your cat somewhere safe to retreat.

Sources

  1. Will a hiding box provide stress reduction for shelter cats?. Applied Animal Behaviour Science (2014), via PubMed
  2. If I fits I sits: A citizen science investigation into illusory contour susceptibility in domestic cats. Applied Animal Behaviour Science (2021)
  3. Cats Take 'If I Fits I Sits' Seriously, Even If The Space Is Just An Illusion. NPR

This article is general information, not a diagnosis. Every pet is different. If your pet ate something that might be toxic, is struggling to breathe, or seems seriously unwell, call your vet or an emergency clinic now, or the ASPCA Animal Poison Control Center at (888) 426-4435. Read our veterinary disclaimer.

DogsComfort editorial team

We're lifelong pet people who read the veterinary manuals, vet-school guides and poison-control data so you don't have to, and we link every claim to its source. Articles are fact-checked before publishing and reviewed when guidance changes.