Geckos are some of the most successful lizards on Earth. You can find them on tropical islands, deep rainforests, dry deserts, and even inside people’s homes. In many places, they quietly hunt on walls and tree trunks at night, catching insects that wander too close.
Because they live in so many different environments, geckos have adapted to eat a wide variety of foods. Some hunt flying insects near porch lights. Others stalk beetles on tree bark or search through leaf litter for worms and spiders.
But their diet isn’t always the same throughout their lives. Baby geckos eat different prey than adults, and their feeding habits can also change during shedding, colder months, or times when food is scarce.
So what do geckos eat in the wild?
In the wild, most geckos eat insects and other small invertebrates such as crickets, moths, flies, spiders, beetles, and worms. Some larger species will also eat small vertebrates like baby lizards, tiny frogs, or even other geckos when the opportunity arises.
In simple terms, geckos are opportunistic hunters. They eat whatever small prey they can catch and swallow whole. Their diet changes depending on their size, their species, and the environment they live in.
This means a tiny baby gecko searching for food in leaf litter will eat very different things from a large adult gecko hunting insects near a porch light.
A Complete Table Showing What Geckos Eat In The Wild
| Gecko Life Stage | Prey Type | Common Examples | Notes on Hunting and Eating | Special Conditions or Occasional Foods |
|---|---|---|---|---|
| Baby Hatchlings | Tiny insects & invertebrates | Mites, springtails, very small ants, baby spiders, small flies, tiny larvae | Hatchlings are tiny and fragile, so they stick to soft-bodied prey they can easily swallow. They hunt close to hiding places like leaf litter, tree bark, or cracks in walls. | Need to eat frequently to support fast growth. |
| Juveniles | Small insects & invertebrates | Small crickets, small beetles, ants, flies, moths, small grasshoppers, spiders, worms | Juveniles are stronger and more confident hunters. They start climbing higher into vegetation or walls and may hunt near outdoor lights. Prey is usually smaller than their head width. | Still careful with prey size to avoid choking or injury. |
| Adults | Larger insects & invertebrates | Crickets, beetles, grasshoppers, moths, flies, cockroaches, spiders, centipedes, caterpillars, worms | Adults can hunt bigger and tougher prey. Most adults are ambush hunters, waiting for prey to move before striking. They swallow prey whole. | Can go a few days without food if prey is scarce. |
| Adults | Small vertebrates | Baby lizards, small frogs, tiny snakes, newly hatched geckos, bird eggs | Larger tropical geckos sometimes eat other animals if they get the chance. This is not common for all species. | Usually occurs when food is scarce or prey wanders too close. |
| Some Adults (Tropical species) | Plant-based foods | Soft fruit, flower nectar, tree sap | Only certain species like crested geckos and day geckos include plant foods. Insects still provide most protein. | Plant foods are seasonal and opportunistic, mostly when fruit or flowers are available. |
| All Life Stages | Seasonal & behavioral changes | Reduced hunting in cold months, less appetite while shedding | Geckos adjust their eating habits depending on temperature, season, or shedding. | Shed skin may be eaten to recycle nutrients. Hatchlings and juveniles eat more frequently than adults. |
Looking at this table, you can see how geckos’ eating habits grow with them. Tiny hatchlings stick to the smallest, softest insects, hunting carefully close to hiding spots.
As they become juveniles, they get bolder, climbing higher and catching a wider variety of insects.
Adults are full-grown hunters, able to tackle bigger and tougher prey, and some even take small vertebrates or sip nectar and fruit when it’s available.
Why Insects Make Up Most of a Gecko’s Diet
Most geckos are what scientists call insectivores. This simply means that insects make up the majority of their diet.
Insects are everywhere in nature. They are small, easy to catch, and packed with protein, which makes them an excellent food source for small reptiles like geckos.

A gecko hunting at night might catch many different types of prey during a single feeding session.
Common wild prey includes:
- Crickets
- Flies
- Mosquitoes
- Moths
- Beetles
- Ants
- Termites
- Spiders
- Caterpillars
- Small worms
Geckos rely heavily on movement when hunting. Their eyes are extremely good at detecting tiny motions in the dark. If a bug stays perfectly still, the gecko may not even notice it.
But once the insect moves, the gecko quickly lunges forward and grabs it with its mouth.
Most prey is swallowed whole.
What Baby Geckos Eat In The Wild
Baby geckos start their lives inside soft eggs that are usually hidden in tree bark, under rocks, or inside small crevices.
While they are developing, their first food source is the yolk inside the egg, which provides enough nutrients for the growing embryo.
When the baby gecko finally hatches, it already looks like a tiny version of an adult gecko.
However, it is extremely small and fragile. Because of this, it can only hunt the tiniest prey items available in its environment.

Newly hatched geckos often eat:
- Springtails
- Tiny ants
- Mites
- Small flies
- Baby spiders
- Very small insect larvae
These tiny creatures are perfect prey because they are soft-bodied and easy for the baby gecko to swallow.
Baby geckos usually hunt very cautiously. They often stay close to hiding places such as leaf litter, tree bark, or cracks in walls.
This helps them avoid predators while they search for food.
At this stage, baby geckos need to eat frequently. Their bodies are growing quickly, and they require a steady supply of protein to fuel that growth.
What Juvenile Geckos Eat In The Wild
As a baby gecko grows into a juvenile, its diet begins to expand.
Juvenile geckos are larger and stronger than hatchlings. Their jaws are more powerful, and their stomachs can handle slightly tougher prey.

Because of this, they begin eating a wider variety of insects.
Wild juvenile geckos commonly eat:
- Small crickets
- Small beetles
- Flies
- Ants
- Moths
- Small grasshoppers
- Spiders
- Worms
At this stage, geckos become much more confident hunters.
Many species begin climbing higher into vegetation or onto walls where more insects are active. Some may also start hunting around outdoor lights where moths and flies gather at night.
Even though juveniles can eat larger prey than babies, they still need to be careful. A prey item that is too large could injure them or be difficult to swallow.
As a general rule in nature, geckos usually hunt prey that is smaller than the width of their head.
What Adult Geckos Eat In The Wild
Adult geckos are fully grown and capable of catching a much wider range of prey.
Most adult geckos still rely mainly on insects, but their larger size allows them to hunt bigger and tougher prey.

Common foods eaten by adult geckos include:
- Crickets
- Beetles
- Grasshoppers
- Moths
- Flies
- Cockroaches
- Spiders
- Centipedes
- Caterpillars
- Worms
Some larger gecko species have even more diverse diets.
For example, certain tropical geckos may also eat:
- Small frogs
- Tiny lizards
- Baby geckos
- Bird eggs
- Nectar or soft fruit
However, insects still make up the majority of their diet.
Adult geckos are usually ambush hunters. They remain still and watch their surroundings carefully. When a bug moves nearby, they rush forward and grab it quickly.
Their sticky toe pads allow them to climb smooth surfaces, which gives them access to hunting areas that many other reptiles cannot reach.
Some Larger Geckos Eat Small Vertebrates
While insects make up the majority of their diet, some larger gecko species will occasionally eat small vertebrates.
This typically happens when the opportunity presents itself.
Examples of vertebrate prey may include:
- Baby lizards
- Small frogs
- Newly hatched geckos
- Tiny snakes
- Bird eggs
This behavior is most common in larger tropical gecko species.

However, these foods are only eaten occasionally. Insects still make up the bulk of the diet for most geckos.
Some Geckos Also Eat Fruit And Nectar
While most geckos are strict insect eaters, some species have evolved to eat small amounts of plant-based food.
These geckos may feed on:
- Soft fruit
- Flower nectar
- Tree sap
Fruit-eating geckos are usually found in tropical forests where fruit and flowers are abundant.
Crested geckos and day geckos are well-known examples of species that sometimes eat fruit or nectar along with insects.

Even for these species, insects remain an important part of the diet because they provide essential protein.
How Gecko Diet Changes As They Grow
The diet of a gecko changes significantly as it grows.
The biggest factor controlling what a gecko can eat is body size.
A tiny hatchling can only catch microscopic insects, while a large adult gecko can hunt insects several times larger.
The diet progression generally looks like this:
Baby geckos start with tiny prey like mites and springtails.
Juvenile geckos expand their diet to include ants, flies, and small beetles.
Adult geckos can eat large insects such as grasshoppers, cockroaches, and moths.
As their size increases, their hunting ability improves, allowing them to capture stronger and faster prey.
How Geckos Catch Their Food
Geckos are excellent hunters.
Most species hunt using a combination of strong eyesight, quick reflexes, and stealth.

They often sit quietly and watch their surroundings. When an insect moves nearby, the gecko quickly rushes forward and grabs it.
Many geckos rely heavily on movement when identifying prey.
If an insect stops moving completely, the gecko may lose interest. This is why many insects use “playing dead” as a defense strategy.
Once the gecko catches the insect, it swallows it whole.
Geckos do not chew their food. Instead, they rely on strong stomach acids to break down the prey after swallowing it.
How Gecko Diets Change Throughout The Year
Food availability in nature changes with the seasons, and geckos adjust their eating habits accordingly.
During warm months when insects are abundant, geckos often eat frequently and grow quickly.
Summer nights can be especially productive for geckos. Warm temperatures cause many insects to become active, which creates plenty of hunting opportunities.
During colder months, however, insect activity drops significantly.
In cooler climates, geckos may:
- Eat much less frequently
- Become less active
- Spend more time hiding in warm shelters
Their metabolism slows down during these periods, so they require less food.
Some species even enter a state similar to hibernation called brumation, where they remain inactive for long periods until temperatures rise again.
How Habitat Influences Geckos Diets
What geckos eat can vary depending on their environment:
-
Tropical forests: insects like beetles, moths, ants, and termites; some species eat nectar or fruit
-
Deserts: ants, beetles, and small grasshoppers; moisture-poor insects dominate
-
Urban areas: flies, mosquitoes, moths; attracted to artificial lights
-
Rocky hills and cliffs: spiders, crickets, and other arthropods found in crevices
Geckos adapt their diet to whatever prey is abundant and safe to eat.
They are extremely opportunistic, and will make the best use of what ever prey is available in the environment they live in.
Do Geckos Eat Less When Shedding?
Like all reptiles, geckos regularly shed their skin as they grow.
During the shedding process, a gecko’s appetite may temporarily decrease.
The skin becomes dull and loose as the new skin underneath forms. This can make the gecko slightly uncomfortable or less interested in hunting.

However, this phase usually lasts only a short time.
Once the shedding process is complete, the gecko typically returns to its normal feeding habits.
Interestingly, many geckos will actually eat their shed skin.
This behavior might seem strange, but it serves a useful purpose. The shed skin contains valuable nutrients that the gecko can recycle.
It also removes evidence of the gecko’s presence, which helps avoid attracting predators.
How Often Geckos Eat In The Wild
Wild geckos do not follow strict feeding schedules the way captive animals do.
Instead, they eat whenever they successfully catch prey.
Some nights may provide many insects, allowing the gecko to eat several times.
Other nights may be less productive.
Because of this unpredictable food supply, geckos are adapted to handle periods without food.
Healthy adult geckos can often go several days without eating if prey is scarce.
Baby and juvenile geckos, however, need to eat more frequently because their bodies are still growing.
Do Geckos Ever Eat Other Geckos?
Yes, this does happen occasionally.
Larger geckos sometimes eat smaller geckos if they get the opportunity. This behavior is called cannibalism and is not uncommon among reptiles.
It usually occurs when:
- Food is scarce
- A larger gecko encounters a smaller one
- The smaller gecko wanders too close
However, insects still make up the vast majority of a gecko’s diet.

Eating other geckos is relatively rare and usually happens only in specific circumstances.
Why Geckos Are Important For Controlling Insects
Geckos play an important role in many ecosystems.
By feeding on insects, they help control populations of pests that might otherwise become overwhelming.
A single gecko can eat dozens of insects in a single night.
This is why geckos are often welcomed in homes in tropical regions. They quietly reduce mosquito and fly populations without harming people.
Many homeowners actually consider geckos helpful natural pest control.
Conclusion
Geckos are adaptable hunters that survive by eating whatever small prey they can catch.
In the wild, their diet is made up mostly of insects such as crickets, flies, moths, beetles, spiders, and worms. Larger species may occasionally eat small vertebrates like baby lizards or frogs.
Baby geckos start with tiny prey such as mites, springtails, and small ants. As they grow into juveniles and adults, they begin catching larger insects and a wider variety of prey.
Their feeding habits can also change depending on the season, temperature, and even natural processes like shedding.
Because of their ability to hunt a wide range of insects, geckos play an important role in maintaining balanced ecosystems and controlling pest populations.
Hi, my name is Ezra Mushala, i have been interested animals all my life. I am the main author and editor here at snakeinformer.com.