B
Species Profile

Boxfish

Ostraciidae

Built like a box, swims like a drone
RMFerreira/Shutterstock.com

Boxfish Distribution

Click a location to explore more animals from that region

This map shows coastal regions where Boxfish are found.

Loading map...

Size Comparison

Human 5'8"
Boxfish 4 in

Boxfish stands at 6% of average human height.

yellow boxfish with black spots

At a Glance

Family Overview This page covers the Boxfish family as a group. Stats below are general traits shared across the family.
Also Known As Trunkfish, Cowfish
Diet Omnivore
Activity Diurnal+
Lifespan 8 years
Weight 2.5 lbs
Status Least Concern
Did You Know?

Their "box" is a bony carapace made of fused polygonal plates, so the body bends far less than most fishes.

Scientific Classification

Family Overview "Boxfish" is not a single species but represents an entire family containing multiple species.

Boxfishes (family Ostraciidae) are small to medium marine reef fishes characterized by a rigid, box-like bony carapace formed by fused hexagonal plates, giving them limited body flexion and a distinctive hovering swim style using mainly the dorsal and anal fins.

Kingdom
Animalia
Phylum
Chordata
Class
Actinopterygii
Order
Tetraodontiformes
Family
Ostraciidae

Distinguishing Features

  • Rigid bony carapace (‘box’ shape) with openings for fins, eyes, mouth, and gills
  • Locomotion mainly via dorsal and anal fin sculling (hovering/precise maneuvering)
  • Small mouth adapted for picking benthic invertebrates and algae
  • Often striking patterns and colors; juveniles may differ greatly from adults
  • Some species have horn-like projections (commonly called ‘cowfishes’)

Physical Measurements

Males and females differ in size

Height
♂ 4 in (1 in – 10 in)
Length
♂ 8 in (3 in – 1 ft 8 in)
♀ 8 in (3 in – 1 ft 8 in)
Weight
♂ 1 lbs (0 lbs – 6 lbs)
♀ 1 lbs (0 lbs – 7 lbs)
Top Speed
6 mph
Very slow; bursts 5–10 km/h
Poisonous

Appearance

Skin Type Boxfish have a rigid, box-like bony shell of fused hexagonal plates with thin skin, limiting flex. Surface can be smooth to rough; some have keels or horn-like bumps and release mucus with ostracitoxin when stressed.
Distinctive Features
  • Family-level size range (smallest to largest members): typically ~3-50 cm total length, with many species falling in the ~10-30 cm range; overall "box" depth/width varies by genus and habitat.
  • Body plan tradeoff: the rigid carapace provides strong protection but limits lateral flexion, producing the characteristic hovering/"sculling" swim using mainly dorsal and anal fins; maneuverable but generally not built for sustained fast swimming.
  • Head and appendages: small terminal mouth; eyes often prominent; pectoral fins used for fine control; tail provides bursts. Several species have bony horns/spines (e.g., anterior/posterior projections), while others are more rounded/hexagonal in outline.
  • Boxfish colors and patterns vary widely: backgrounds are cream, tan, brown, or bright yellow with black, white, or blue marks. Some species are spotted, striped, or mottled; patterns often shift from juvenile to adult.
  • Mostly reef-associated: live on coral and rocky reefs, reef flats, lagoons, and rubble zones. Some species use nearby seagrass beds or sandy areas; depths range from very shallow to deeper reef slopes.
  • Feeding ecology (general): mostly benthic foragers picking or blowing/suctioning small prey from the substrate-small crustaceans, mollusks, worms, foraminiferans, small echinoderms, and sometimes sponges/algal material; exact diets vary by species and habitat.
  • Many boxfish are active by day and stay near home, moving slowly. Some are solitary; others form pairs or small groups. Caution and use of armor or hiding vary with predators and habitat.
  • Boxfish use armor, a hard-to-grab body, and toxin-bearing mucus to ward off predators; toxins can be serious in tanks but are not always deadly on open reefs, and species vary in toxicity.
  • Longevity range across the family: commonly ~3-15+ years depending on species size and environment; larger species and individuals in protected/captive conditions may reach ~15-20 years, while smaller species often have shorter lifespans.

Sexual Dimorphism

Sexual dimorphism in Ostraciidae is generally subtle and species-dependent. Many species show little external difference between sexes, while some exhibit modest dimorphism in coloration intensity, pattern contrast, or size. Reproductive condition can temporarily accentuate differences (e.g., brighter males or fuller-bodied females).

♂
  • In some species/populations, slightly brighter or higher-contrast coloration/patterning, especially during breeding periods.
  • Occasionally slightly slimmer body profile relative to females of similar length.
  • In a few taxa, marginally more pronounced fin edging or display behavior may make males appear more vivid, though this is not a consistent family-wide rule.
♀
  • Often similar coloration to males in many species; where dimorphism exists, females may be duller or less contrasty.
  • Sometimes slightly larger or deeper-bodied, especially when gravid, giving a more rounded box profile.
  • No universal horn/plate differences are diagnostic across the entire family; any structural dimorphism is rare and species-specific.

Did You Know?

Their "box" is a bony carapace made of fused polygonal plates, so the body bends far less than most fishes.

Many swim by sculling mainly the dorsal and anal fins-like underwater hovering-rather than powerful tail beats.

Some species can release a skin toxin (ostracitoxin) when highly stressed, which can deter predators (and can be dangerous in closed aquaria).

Despite their boxy shape, some boxfishes are surprisingly maneuverable at slow speeds, pivoting and braking precisely around coral.

The family includes both smooth "trunkfishes" and horned "cowfishes," showing big differences in head/armor ornamentation.

Boxfishes are part of Tetraodontiformes, relatives of pufferfishes and triggerfishes, sharing an emphasis on defenses over speed.

Their armor is a tradeoff: excellent protection, but limited flexibility and generally low burst speed compared with many reef fishes.

Unique Adaptations

  • Rigid bony carapace (fused plates): a built-in "armor shell" that resists bites and reduces predation, at the cost of body flexion.
  • Chemical defense (ostracitoxin): mucus-associated compounds that can deter predators; effectiveness and propensity to release can vary across species and circumstances.
  • Box-shaped hydrodynamic plan: favors stability and controlled hovering at low speeds-useful for precise reef maneuvering-even though it's not optimized for sprinting.
  • Reduced/modified body spines and horns in some lineages (e.g., 'cowfishes'): conspicuous armor extensions that can make swallowing or handling difficult for predators.
  • Small, precise mouthparts suited to picking small benthic invertebrates and other reef-associated foods; diet breadth varies from more carnivorous to more omnivorous across species.

Interesting Behaviors

  • Hovering/fin-sculling locomotion: many species cruise slowly over reef and sand, using dorsal/anal fins for fine control; tail bursts are shorter and less sustained.
  • Foraging by picking and blowing: individuals often peck at small benthic prey on sand, rubble, and reef surfaces; some use short jets of water to expose prey.
  • Diurnal activity is common in many reef-associated species, with sheltering in crevices or reef structure when resting; patterns vary by habitat and local predators.
  • Home-range tendencies: some species show repeated use of particular patches of reef or lagoon, while others range more broadly over open sandy areas.
  • Predator response behaviors include wedging into crevices (armor-first), presenting the toughest angles of the carapace, and (in extreme stress) toxin release.

Cultural Significance

Boxfishes (Ostraciidae), also called trunkfishes or cowfishes, are loved in reef tours, aquariums, and art for their boxy 'armor' and hovering swim. The yellow boxfish inspired car design. In tanks, they can release poison when very stressed.

Myths & Legends

Naming lore among sailors and fishers: horned species became "cowfishes" because the protrusions resemble cattle horns-an old seafaring habit of naming unfamiliar marine animals by familiar land analogies.

Aquarium-keeper cautionary tales: boxfishes are the subject of enduring hobbyist stories about a single stressed individual "poisoning a whole tank," a modern piece of marine-keeping folklore rooted in their real chemical defenses.

Biomimicry origin story: designers often retell how the yellow boxfish's shape inspires 'armored efficiency,' a modern tale of nature teaching technology and offering ideas to engineers.

Caribbean and tropical reef vernacular traditions often treat 'trunkfish/cowfish' as emblematic reef characters-odd, comical-looking, and well-protected-appearing in informal stories and local natural-history storytelling tied to reef life.

Conservation Status

LC Least Concern (family-level summary): Across Ostraciidae, most assessed species are currently listed as Least Concern, with a smaller subset assessed as Data Deficient and a few localized/range-restricted taxa assessed at higher risk in parts of their ranges. Family members are generally widely distributed across tropical/subtropical shallow marine habitats (especially coral and rocky reefs, lagoons, and seagrass edges), but vulnerability varies strongly with range size, habitat specialization, and local fishing/collection pressure. RANGES & GENERALIZATIONS (entire family, not a single species): - Measurements (approximate adult total length across family): ~5 cm (smallest boxfishes) up to ~50 cm (largest trunkfish/boxfish species). - Lifespan (reported/estimated across species, variable by size and environment): roughly ~4 to 15+ years (some larger species may exceed this under favorable conditions). - Behavior/Ecology (common patterns with variation noted): Typically slow, hovering swimmers using dorsal/anal fins; often diurnal and closely associated with structured habitats. Diets are commonly benthic/invertebrate-focused (small crustaceans, mollusks, worms) with some species taking algae/foraminiferans or broader omnivory. Many occur singly or in pairs; some show site fidelity and small home ranges, while others are more mobile over reef flats/lagoons. Reproductive strategies vary (pair spawning vs. more diffuse spawning in aggregations), and early life stages are pelagic before settlement. Family members generally rely on intact reef structure for shelter/foraging, but tolerance to habitat disturbance differs among species (generalists vs. habitat specialists). CONSERVATION LANDSCAPE (hub-level): Main conservation concern is not uniform global decline but patchy, local impacts-especially where reefs are degraded and where collection (aquarium) or small-scale fisheries/bycatch is intense. Data gaps remain for some less-studied or range-restricted species, driving Data Deficient assessments and uncertainty about trends.

Widespread and abundant in the wild.

Population Unknown

You might be looking for:

Yellow boxfish

28%

Ostracion cubicus

Common Indo-Pacific boxfish; juveniles are bright yellow with black spots.

Longhorn cowfish

22%

Lactoria cornuta

Recognizable for its long horn-like projections; Indo-Pacific reefs and lagoons.

Smooth trunkfish

18%

Lactophrys triqueter

Western Atlantic/Caribbean boxfish with a triangular profile and smooth carapace.

Spotted trunkfish

12%

Lactophrys bicaudalis

Western Atlantic/Caribbean species with dark body and pale spotting.

Thornback boxfish

8%

Ostracion rhinorhynchos

Indo-Pacific species with small spines/keels on the bony carapace.

Life Cycle

Birth 20000 frys
Lifespan 8 years

Lifespan

In the Wild
3–15 years
In Captivity
5–20 years

Reproduction

Mating System Polygyny
Social Structure Harem Based
Breeding Pattern Seasonal
Fertilization Broadcast Spawning
Birth Type Broadcast_spawning

Boxfishes (Ostraciidae) have separate sexes and release eggs and sperm into the water (external, pelagic broadcast). No parental care. Males often hold territories and mate with several females, but some form seasonal pairs; spawning is brief.

Behavior & Ecology

Social Shoal Group: 2
Activity Diurnal, Crepuscular
Diet Omnivore Benthic invertebrates picked from reef surfaces (especially small crustaceans), often supplemented with turf/filamentous algae; the balance varies widely among species and habitats.

Temperament

Generally cautious to shy; relies on crypsis, rigid carapace protection, and slow hovering rather than rapid flight.
Often non-confrontational toward non-competitors, but can show short chases or space-holding around favored feeding patches; intensity of territoriality varies widely among species and local density.
Boldness varies by environment (e.g., more wary in high-predation or heavily fished areas; more tolerant of close approach at sheltered reefs).
During reproduction, individuals may become more assertive (courtship pursuit, brief conflicts between males), but sustained aggression is typically limited.

Communication

Acoustic signaling is not a dominant modality; some tetraodontiform fishes can produce faint clicks/pulses, and similar low-level sounds may occur in some ostraciids, but usage appears limited and variable across species.
Visual signaling: body orientation, fin displays, and position holding; some species show pattern/brightness changes that can function in courtship or threat displays.
Tactile/close-range interactions during courtship: following, circling, parallel swimming, and brief contact prior to spawning.
Chemical defense cues: release of toxic skin mucus (ostracitoxin/related compounds) under severe stress can deter predators and may indirectly affect nearby fish behavior (avoidance), though it is not a deliberate social signal.
Spatial signaling: maintaining personal distance and using microhabitat selection (crevices, coral heads, seagrass clumps) as a form of social spacing; stronger in adults than juveniles.

Habitat

Coral Reef Coastal Seabed/Benthic Rocky Shore Estuary Mangrove Kelp Forest +1
Biomes:
Terrain:
Coastal Island Rocky Sandy Muddy
Elevation: Up to 820 ft 3 in

Ecological Role

Benthic omnivorous mesoconsumers on reefs and adjacent seagrass/sand mosaics; across the family they function as both small-invertebrate predators and incidental algal grazers, with notable interspecific and habitat-driven variation in how strongly they emphasize animal prey vs. algae.

Regulation of small benthic invertebrate populations (e.g., crustaceans, worms, small mollusks) Supplementary grazing on turf/microalgae that can contribute to reef-surface balance (variable among species) Nutrient recycling via continuous low-level foraging and excretion in reef and lagoon habitats Trophic linkage between cryptic benthic prey communities and higher predators (as prey themselves, despite chemical defenses in some taxa)

Diet Details

Main Prey:
Small benthic crustaceans Polychaete worms Small mollusks Benthic tunicates Sponge Small echinoderms and other micro-benthic invertebrates Fish eggs and larvae +1
Other Foods:
Filamentous and turf algae Diatom films Macroalgae Seagrass-associated algae and plant detritus

Human Interaction

Domestication Status

Wild

Boxfish (family Ostraciidae) are wild; none are domesticated or bred. People mostly see them on reefs, in the limited aquarium trade, or as bycatch. They live in tropical and subtropical reefs, lagoons, and sand/grass flats, grow ~5–50 cm and live ~4–15+ years. They swim slowly, have bony armor, and often release poison when stressed.

Danger Level

Low
  • Chemical defense: stressed individuals may release toxins into surrounding water; this is mainly a risk to other fishes in closed systems (aquaria) but can be an irritant/toxic exposure risk if mishandled and then hands contact eyes/mouth.
  • Injury risk: some species have rigid horns/spines that can puncture or scrape during handling.
  • Food safety: not commonly eaten; consumption is generally discouraged because of potential toxin-related risk and variable reef-fish poisoning concerns in some regions (risk is context-dependent and not a typical food fish).

As a Pet

Suitable as Pet

Legality: Boxfish are usually legal where marine aquarium fish are allowed, but laws differ by country or state. Many places limit reef collection, marine parks, or imports and exports, and may need permits. Check local wildlife and fisheries rules.

Care Level: Experienced

Purchase Cost: $50 - $400
Lifetime Cost: $3,000 - $25,000

Economic Value

Uses:
Marine aquarium trade (ornamental) Reef ecotourism (diving/snorkeling wildlife viewing) Fisheries/bycatch (minor; generally not targeted) Scientific/educational value (biomechanics, toxin research, reef ecology)
Products:
  • live ornamental fish for marine aquaria (species-dependent)
  • public aquarium displays and educational programming
  • research/biomedical interest related to ostracitoxin and defensive ecology

Relationships

Related Species 8

Yellow boxfish Ostracion cubicus Shared Family
Spotted boxfish Ostracion meleagris Shared Family
Longhorn cowfish Lactoria cornuta Shared Family
Smooth trunkfish Lactophrys triqueter Shared Family
Honeycomb cowfish Acanthostracion polygonius Shared Family
Striped boxfish Kentrocapros aculeatus Shared Family
Pufferfishes
Pufferfishes Tetraodontidae Shared Order
Porcupinefishes
Porcupinefishes Diodontidae Shared Order

Ecological Equivalents 5

Animals that fill a similar ecological role in their ecosystem

Pufferfish
Pufferfish Tetraodontidae Often share reef and lagoon habitats and feed on similar benthic invertebrates. Both rely on strong chemical and physical defenses: puffers use inflation, while boxfishes have a rigid carapace and may release toxins when stressed.
Porcupinefish
Porcupinefish Diodontidae Similar slow-to-moderate reef foragers that crush hard-shelled prey (mollusks and crustaceans) and rely on anti-predator defenses rather than speed.
Triggerfish
Triggerfish Balistidae Occupy overlapping reef niches as diurnal benthic feeders on crustaceans and other invertebrates. Both are common around coral and rocky structures, though triggerfish are generally more powerful swimmers and more aggressive.
Filefish Monacanthidae Share hovering, fine-maneuvering reef lifestyles and often pick small invertebrates from the substrate. Both may rely on body shape and armor-like traits, though filefish armor is less rigid than the boxfish carapace.
Wrasses Labridae Many wrasses use similar daytime hunting patterns to feed on small benthic invertebrates along reefs and seagrass edges. They overlap in diet and habitat, even though they lack a rigid carapace and typically swim faster.

Types of Boxfish

16

Explore 16 recognized types of boxfish

Yellow boxfish Ostracion cubicus
Spotted boxfish Ostracion meleagris
Whitley's boxfish Ostracion whitleyi
Longhorn cowfish Lactoria cornuta
Fornasini's cowfish Lactoria fornasini
Roundbelly cowfish Lactoria diaphana
Smooth trunkfish Lactophrys triqueter
Trunkfish
Trunkfish Lactophrys trigonus
Guinean trunkfish Lactophrys guineensis
Spotted trunkfish Lactophrys bicaudalis
Honeycomb cowfish Acanthostracion polygonius
Scrawled cowfish Acanthostracion quadricornis
Spiny trunkfish Acanthostracion notacanthus
Striped boxfish Kentrocapros aculeatus
Yellowbanded boxfish Kentrocapros flavofasciatus
Humpback turretfish Tetrosomus gibbosus

Quick Take

It’s easy to see how a boxfish got its name. Its body is shaped like a small box! These are saltwater fish living on coral reefs in the Pacific and Indian Oceans, as well as the southeastern Atlantic Ocean. They’re sometimes sold as colorful additions to an aquarium.

A detailed infographic about Boxfish featuring a central yellow spotted fish, a global habitat map, and sections on their diet, lifespan, and poisonous neurotoxins.
Don't let the boxy shape fool you—this colorful reef dweller carries a heat-stable neurotoxin that can turn a gourmet meal into a lethal mistake. © A-Z Animals

3 Boxfish Facts

  • Poison protection: Boxfish have a deadly neurotoxin in their skin that they can release when threatened by a predator.
  • Lots of eggs: Though not much is known about the breeding habits of the boxfish, biologists have found that a female boxfish can lay eggs every day for one month.
  • Sand blower: A boxfish sometimes blows water into the sand in search of the vegetation and prey in its diet.

Classification and Scientific Name

Ostracion cubicus is the scientific name of the Yellow boxfish. The Latin word Ostracion means shell, which refers to the carapace or shell structure of this fish. Cubicus means cube-like.

Trunkfish and cowfish are some of its alternate names. It’s in the Ostraciidae family and the class Actinopterygii.

Types of Boxfish: The Different Species

The Ostraciidae family of boxfish contains 23 species. Some of these family members live in the Atlantic Ocean, while others live in the Pacific or Indian Oceans. Here are some of the well-known species:

  • Spotted boxfish (Ostracion meleagris): These fish live in the Pacific off the coast of Mexico. They are sometimes referred to as the white-spotted boxfish. This is due to their ornate, bright blue lower body, spotted with yellow.
  • Roundbelly cowfish (Lactoria diaphana): It’s called a cowfish because of the two small horned structures sticking out of its head. They are found in the southeastern Atlantic Ocean on coral reefs as well as in the Pacific Ocean off the coast of California.
  • Smooth trunkfish (Lactophrys triqueter): This fish is named for the shape and texture of its body. It’s dark brown and spotted with white. They live in the Atlantic Ocean off the coast of Mexico, Florida, and the eastern coast of South America.

Boxfish Appearance

The appearance of a boxfish changes as it grows older. If you see a brilliant yellow boxfish spotted with black, you know it’s a juvenile. But if you see one with a blue-gray, dull yellow, or even brownish body with faded spots, you know it’s an adult boxfish.

Their boxy shape is due to the shell structure beneath their scales. This odd shape makes them very slow swimmers. In fact, some describe their movement as hovering, instead of swimming.

Generally, these fish grow to between three and 16 inches. The longest recorded specimen is 18 inches.

Large fish and sharks are predators of the boxfish. Considering its small size, it would seem like easy prey. But one of the most interesting facts about the boxfish is that it has a few effective ways to defend itself.

First, this fish has a bright yellow body spotted with black. The brilliant, ornate color of its scales is a warning to predators that it contains poison. Indeed, if this fish becomes stressed, it releases poison into the water around it. This poison can make a predator sick or even kill it.

Some species of boxfish have horned structures that can deter predators.

The sturdy shell beneath the scales of a boxfish also makes this fish unappetizing to many types of predators!

black and white spotted boxfish

Boxfish can be found in a variety of colors and patterns.

Distribution, Population, and Habitat

These saltwater fish live in the Pacific, Indian, and southeastern Atlantic Oceans. They are found off the western and eastern coasts of Australia. Boxfish also live off the southeastern coast of the United States.

They have a coral reef habitat and occupy lagoons. These fish live at a range of depths from three to 920 feet.

Most of the boxfish species are classified as Least Concern by the IUCN Red List.

Boxfish Predators and Prey

Boxfish have an omnivorous diet. They hover over the rocky slopes and near the sandy bottom of a lagoon, looking for small prey.

What eats a boxfish?

Large fish, sharks, and humans are all predators of the boxfish. Some humans eat them while others keep these ornate, blue, yellow, and spotted fish in aquariums.

What do boxfish eat?

The diet of a boxfish includes marine algae and small fish, as well as krill and crustaceans.

Reproduction and Lifespan

These fish reproduce in the late spring in warm water. They form groups consisting of one male and two to four females. The females lay eggs that float near the surface. The male boxfish releases sperm to fertilize the eggs. A female boxfish can lay eggs every day for a month. The gestation period is unknown.

Boxfish live four years on average.

Boxfish in Fishing and Cooking

Boxfish are captured around coral reefs as food and exotic pets.

Some people successfully keep boxfish in aquariums. Of course, they are saltwater fish that need a water temperature between 72 and 78 degrees Fahrenheit. In addition, they require a water pH level between 8.1 and 8.4.

The horned, colorful, or otherwise unique appearance of this fish is a key reason why it is so popular with aquarium enthusiasts. Plus, they are available at a reasonable price online. As a note, the price of this fish varies depending on its coloration.

Some people do eat boxfish. In fact, many say grilled boxfish has a delicious flavor and contains healthy protein. However, caution is advised, as the toxin produced by some boxfish species is heat-stable and may not be destroyed by cooking, making consumption potentially dangerous.

View all 453 animals that start with B

Sources

  1. Thai National Parks / Accessed March 1, 2022
  2. Mexican Fish / Accessed March 1, 2022
  3. Georgia Aquarium / Accessed March 1, 2022
  4. Fish Of Australia / Accessed March 1, 2022
  5. UWI / Accessed March 1, 2022
  6. Monaco Nature Encyclopedia / Accessed March 1, 2022
  7. Sea Fish Pool https://www.seafishpool.com/yellow-boxfish/ Jump to top / Accessed March 1, 2022
Ashley Haugen

About the Author

Ashley Haugen

Ashley Haugen is the editor of A-Z Animals. She's a lifelong animal lover with an affinity for dogs, cows and chickens. When she's not immersed in A-Z-Animals.com (her favorite editorial job of her 25-year career), she can be found on the hiking trails of Middle Tennessee or hanging out with her family, both human and furry.
Connect:

Thank you for reading! Have some feedback for us?


Boxfish FAQs (Frequently Asked Questions)

The southeastern Atlantic Ocean as well as in the Pacific and Indian Oceans.