What a Shrimp Goby Is and Why It Matters in Your Tank
A shrimp goby is a small saltwater fish that forms a working partnership with a pistol shrimp, sharing a burrow on the seafloor. The goby stands guard while the nearly-blind shrimp digs and maintains the shelter, and the two communicate through touch and body signals. This behaviour makes shrimp gobies one of the most distinctive fish to keep in a reef aquarium — they are active, engaging to watch, and they create a living system within your tank rather than simply occupying space.
Shrimp gobies belong to the family Gobiidae and are found in Indo-Pacific coral reef environments, typically in depths between 5 and 40 metres. They are bottom-dwellers that rarely venture far from their burrow, so they work well in established tanks where you can provide stable sand beds and the right tank mates. Most species stay between 3 and 5 inches long, making them suitable for tanks as small as 30 gallons, though larger tanks give you more flexibility with burrow placement and shrimp selection.
Key Takeaways
- Shrimp gobies require a pistol shrimp partner to thrive, and the two must be introduced together or the goby will hide constantly and refuse to feed.
- A sand bed at least 3 inches deep is essential, because the shrimp will burrow and the goby depends on that burrow for shelter and security.
- Common species include the Yellowhead Goby, Rainford's Goby, and Stonogobiops yasha, each with slightly different temperament and shrimp compatibility.
- Shrimp gobies are peaceful with most reef fish but will defend their burrow territory against other bottom-dwellers, so tank mates must be chosen carefully.
- Water conditions must remain stable — temperature between 72 and 78 degrees Fahrenheit, pH 8.1 to 8.3, and specific gravity 1.023 to 1.025.
Common Species and Their Characteristics
The Yellowhead Goby (Cryptocentrus cinctus) is the most widely available species and pairs readily with pistol shrimp, particularly the Randall's Pistol Shrimp. It has a pale body with yellow markings on the head and fins, grows to about 4 inches, and is relatively hardy for a goby. Yellowheads are bold once established and will forage openly in the sand, making them engaging to observe.
Rainford's Goby (Koumansetta rainfordi) is smaller — usually 2.5 to 3 inches — with a spotted blue and orange pattern. It is more delicate than the Yellowhead and requires pristine water conditions and a well-established tank. Rainford's pairs with smaller pistol shrimp species and is best suited to experienced aquarists who can maintain consistent parameters.
Stonogobiops yasha, commonly called the Yasha Neon Goby, has a striking white body with neon-blue stripes and reaches about 3 inches. It is moderately hardy and pairs well with the Tiger Pistol Shrimp. Yasha gobies are less aggressive than Yellowheads but still maintain a clear burrow territory and will chase away competing bottom-dwellers.
Other available species include the Prawn Goby (Amblyeleotris species), which are larger and more aggressive, and the Watchman Goby (Cryptocentrus cinctus), which is similar to the Yellowhead but slightly smaller. Research your specific species before purchase to match it with the right shrimp and tank size.
Setting Up the Burrow and Sand Bed
Shrimp gobies cannot thrive without a proper burrow, and the burrow cannot exist without a suitable sand bed. Use fine to medium sand — not crushed coral or rubble — and provide a depth of at least 3 inches across a significant portion of your tank floor. The shrimp will excavate and reshape the burrow constantly, so the sand must be loose enough to move and stable enough not to collapse immediately.
Place rocks or rubble around the sand bed to create a defined burrow entrance. Many aquarists use a small piece of PVC pipe or a natural rock overhang to anchor the burrow opening and give the shrimp a frame to work within. This prevents the burrow from collapsing into the main tank and gives the goby a clear shelter point to retreat to.
Position the burrow in a low-flow area of your tank — not directly in front of a powerhead or return line. The shrimp and goby need to be able to move sand without it being swept away, and the goby needs to be able to hold position at the burrow entrance without constant effort. A burrow in a dead spot or behind a rock formation works better than one in the open.
Choosing and Introducing a Pistol Shrimp Partner
The pistol shrimp is not optional — a shrimp goby without a shrimp will hide in rockwork, refuse food, and eventually decline. The two must be introduced together as a pair, ideally in a separate quarantine tank before moving to the display. If you introduce a goby to an established tank without a shrimp, it will not bond with a shrimp added later.
Match the shrimp species to your goby. Yellowhead Gobies pair with Randall's Pistol Shrimp (Alpheus randalli) or Snapping Shrimp (Alpheus species). Rainford's Gobies work with smaller shrimp like the Tiger Pistol Shrimp (Alpheus bellulus). Yasha Gobies pair with Tiger Pistol Shrimp or Ambonia Shrimp. Ask your supplier which pairs they have in stock, because some combinations work better than others depending on the individual shrimp's temperament.
Introduce the pair into a quiet tank section with minimal current and plenty of sand. They will spend the first few days building and refining the burrow. Do not move them or disturb the sand bed during this time. Once they have established a burrow and you see the goby standing guard at the entrance, they are bonded and can be left undisturbed.
Feeding and Daily Care
Shrimp gobies are carnivorous and will eat small crustaceans, copepods, and prepared foods. In an established reef tank with a healthy population of small crustaceans, they may feed primarily on natural prey. In newer or less populated tanks, you will need to supplement with frozen mysis shrimp, frozen copepods, or small pellets designed for bottom-feeders.
Feed once daily in small amounts — only what the goby will consume in a few minutes. Drop food near the burrow entrance so the goby can grab it without venturing far. The shrimp will also forage in the sand and will eat scraps and detritus, so overfeeding can foul the water and damage the sand bed.
Perform weekly water changes of 20 to 25 percent to maintain stable parameters. Test for ammonia, nitrite, and nitrate every two weeks in an established tank, and more frequently if the tank is new. Shrimp gobies are sensitive to sudden changes in salinity, temperature, or pH, so use a refractometer to match the specific gravity of new water to the tank before adding it.
Tank Mates and Territorial Behaviour
Shrimp gobies are peaceful with most reef fish but will defend their burrow territory aggressively. Do not house them with other bottom-dwellers like jawfish, dragonets, or other gobies — they will fight for the burrow and one will be killed or driven to hide permanently. Avoid aggressive fish like damselfish, dottybacks, or large wrasses that may harass the goby or shrimp.
Good tank mates include peaceful mid-water swimmers like anthias, chromis, cardinalfish, and small wrasses that do not compete for bottom space. Peaceful herbivores like tangs and surgeonfish work well if the tank is large enough. Avoid fish that dig in sand or uproot plants, because they will destabilize the burrow and stress the pair.
Shrimp gobies can be housed with other invertebrates like sea stars, urchins, and non-aggressive crabs, though the pistol shrimp may snap at very small crustaceans. Avoid housing them with large predatory crabs or mantis shrimp, which will hunt the goby or shrimp.
Water Parameters and Tank Size
Maintain a temperature between 72 and 78 degrees Fahrenheit, with 75 degrees as the ideal midpoint. Use a reliable heater and thermometer, and avoid fluctuations greater than 2 degrees per day. Shrimp gobies come from stable reef environments and do not tolerate rapid temperature swings.
Keep pH between 8.1 and 8.3 and specific gravity between 1.023 and 1.025. Use a refractometer rather than a hydrometer for accurate readings. Test alkalinity weekly and maintain it between 8 and 12 dKH to buffer pH swings. Nitrate should stay below 20 ppm, and phosphate below 0.5 ppm, to prevent algae blooms and maintain water clarity.
A 30-gallon tank is the minimum for a single shrimp goby pair, though 40 gallons or larger gives you more flexibility with burrow placement and tank mates. In smaller tanks, the burrow takes up a larger proportion of the available space, and the goby may feel exposed. Larger tanks also provide more stable water parameters and dilute waste more effectively.
Frequently Asked Questions
Can I keep a shrimp goby without a pistol shrimp?
No. A goby without a shrimp will hide constantly and refuse to feed. The partnership is essential to the goby's behaviour and health. Always introduce them as a bonded pair, and never add a shrimp to an established goby — they will not bond after the fact.
What if my shrimp goby and pistol shrimp stop using their burrow?
This usually means the burrow has collapsed or become unstable. Check the sand bed for compaction or debris, and gently refresh the area around the burrow entrance. If the sand is too fine or too coarse, the burrow may not hold its shape — consider adding a small piece of PVC or rock to anchor it. If water parameters have changed, test immediately and correct any drift in temperature, salinity, or pH.
How long do shrimp gobies live in captivity?
Most species live 4 to 6 years with proper care, though some individuals reach 8 years or longer. Lifespan depends on water quality, diet, and the stability of the tank environment. Stress from poor conditions or unsuitable tank mates shortens life expectancy significantly.
Will a shrimp goby eat small fish or shrimp in my tank?
Shrimp gobies are carnivorous but are too small to threaten most fish. They may eat very small ornamental shrimp or copepods, but they will not hunt fish larger than a few millimetres. Avoid housing them with tiny goby fry or newly-settled coral polyps, which they may consume.
Can I move the burrow if I need to rearrange the tank?
Avoid moving the burrow if possible — the pair will become stressed and may not re-establish. If you must rearrange, do it gradually over several days, moving rocks and sand incrementally rather than in one large change. Keep the burrow entrance in a similar location and light level if you can.