Blog

Hamster chewing the cage at night? Why it happens and what helps

The scraping of bars at 2 a.m. is your pet asking for something. What research and the RSPCA say about bar-chewing, what to change in the cage, and how to get your nights back.

Updated 1 December 2026

It's 2 a.m. From the kids' room comes a steady metallic scraping: the hamster is chewing the cage bars. You get up and tap the cage, he freezes for a minute, then starts again. Your child is awake, and so are you. You pick up your phone and type "how to stop hamster biting cage at night".

That's exactly how Bugabot began. Its creator was searching for a way to stop his guinea pig chewing the cage at night, couldn't find anything that worked, and wrote the program himself. Here's what he wishes he'd found back then.

Why is my hamster chewing the cage?

Gnawing is normal for a rodent: their teeth grow all their life. But long, stubborn chewing of the bars is almost always a sign that something is missing.

Too little space. Researchers filmed 60 hamsters housed in cages of four sizes, from 1,800 to 10,000 cm² of floor space. Hamsters chewed the bars in every cage, but those in small cages gnawed significantly longer and more often. The authors concluded that hamsters fared better with at least 10,000 cm² of floor, roughly 100 × 100 cm or 120 × 85 cm (about 1,550 sq in). Many pet-shop cages are several times smaller.

Nothing to do. Hamsters are night animals: they sleep through the day and spend the night running, digging and foraging. With nothing to dig in and a small or squeaky wheel, the bars are what's left.

Nothing to gnaw. Without branches, wooden toys and hay, the teeth go to work on the bars.

Why do guinea pigs chew the bars?

Guinea pigs have similar reasons, plus a few of their own.

  • Loneliness. The RSPCA says guinea pigs are social animals and shouldn't live by themselves. A single guinea pig gets bored faster.
  • Teeth. Their incisors never stop growing, and without untreated wooden toys or fruit-tree and willow sticks, the RSPCA warns, they can become overgrown.
  • Begging. A guinea pig learns fast: chew the bars, a human appears, food arrives. Bar-rattling when it hears you in the kitchen is usually exactly that.

What to change first

  1. A bigger cage. For a hamster, the benchmark from the study is at least 10,000 cm² of floor. A guinea pig needs room to run and to stand up fully on its back legs.
  2. Deep bedding. The RSPCA advises bedding deep enough for hamsters to dig. Digging matters to them as much as running.
  3. A big, quiet wheel. Your hamster needs to run at night, and a silent wheel also gets rid of the second night-time noise.
  4. Things to gnaw. Fruit-tree or willow branches, untreated wooden toys, hay.
  5. A friend for a guinea pig. The RSPCA recommends keeping it with at least one other friendly guinea pig.
  6. Move the hamster out of the bedroom. He'll always be awake at night, that's his nature. Just let it happen away from your bed.

While you sort out the cage: a quiet answer at night

A new cage and branches remove the cause, but the habit doesn't vanish overnight. And a begging guinea pig keeps rattling the bars for as long as someone comes when it does.

This is where an old phone next to the cage helps. It listens to the room, and when the scraping goes above the level you set, it softly plays a short "Shhh" in your own voice and goes quiet after a couple of seconds. You don't get up and you don't bring food, so the scraping stops working like a doorbell. That's how Bugabot works: nothing to install, it runs in the phone's browser.

The rule for rodents is: quiet and short. Hamsters and guinea pigs are easily frightened, and the RSPCA warns that guinea pigs suffer stress if they're repeatedly frightened and can't hide. So no growls and no sirens: your own calm voice at a low volume, and always a hideout in the cage.

The block above plays the bot's standard growl, which is meant for dogs. Don't use it for a hamster or guinea pig: only your own quiet voice.

The phone also keeps a log. Every time it goes off, you get a Telegram message saying when and how loud. A week after the new cage, you can see whether there's less scraping. If there isn't, the cause hasn't been found yet, and it's worth taking your pet to a vet who treats small animals.

Related reading: Rabbit chewing the cage and thumping at night: why and Parrot screaming: why it happens and how to stop it.

How to set it up

  1. Put the phone on its charger near the cage, but not right next to it: your pet must not reach the cable.
  2. Open bugabot.com in the browser, sign in and tap "Start".
  3. Record a soft "Shhh" in your own voice and set a low volume.
  4. Set the sensitivity so the bot wakes up to bar-chewing, not to rustling bedding.
  5. Link Telegram to see in the morning how many times the scraping started overnight.

Bar-chewing at 2 a.m. is your pet asking for something. Answer it with a better cage and things to gnaw, and let the phone keep watch over the night.

Rate this article

No ratings yet. Be the first.

Why is my hamster biting the cage?

Most often the cage is too small or there is nothing to dig, run on or gnaw. In a study of 60 hamsters, those in small cages chewed the bars significantly longer and more often; hamsters fared better with at least 10,000 cm² of floor.

Why does my guinea pig chew the cage bars?

Guinea pigs chew bars out of boredom, loneliness, when they lack wooden things to gnaw, or to beg: they learn that rattling the bars brings a person with food. The RSPCA advises keeping them with at least one friendly companion.

Will the sound frighten my hamster or guinea pig?

Use only your own calm voice at a low volume: the bot plays it for a couple of seconds and goes quiet. Never use growls or sirens for rodents, and always leave a hideout in the cage.

How long does Bugabot work for free?

The free plan runs for 5 hours in a row, then rests for 5 hours. PRO works without breaks: $0.99 a day, $9.99 a month or $49.99 a year, no auto-renewal.