Polyhydroxyalkanoates (PHAs) are bacterial carbon storage polymers with diverse plastic-like properties. PHA biosynthesis in transgenic plants is being developed as a way to reduce the cost and increase the sustainability of industrial PHA production. The homopolymer polyhydroxybutyrate (PHB) is the simplest form of these biodegradable polyesters. Plant peroxisomes contain the substrate molecules and necessary reducing power for PHB biosynthesis, but peroxisomal PHB production has not been explored in whole soil-grown transgenic plants to date. We generated transgenic sugarcane (Saccharum sp.) with the three-enzyme Ralstonia eutropha PHA biosynthetic pathway targeted to peroxisomes. We also introduced the pathway into Arabidopsis thaliana, as a model system for studying and manipulating peroxisomal PHB production. PHB, at levels up to 1.6%–1.8% dry weight, accumulated in sugarcane leaves and A. thaliana seedlings, respectively. In sugarcane, PHB accumulated throughout most leaf cell types in both peroxisomes and vacuoles. A small percentage of total polymer was also identified as the copolymer poly (3-hydroxybutyrate-co-3-hydroxyvalerate) in both plant species. No obvious deleterious effect was observed on plant growth because of peroxisomal PHA biosynthesis at these levels. This study highlights how using peroxisomal metabolism for PHA biosynthesis could significantly contribute to reaching commercial production levels of PHAs in crop plants.