Isolated DNA fragments encoding a Rhodospirillum rubrum (ATCC 25903) polyhydroxyalkanoate (PHA) synthase, or biologically functional equivalents thereof, are provided. Also provided is the deduced amino acid sequence of the R. rubrum PHA synthase. These molecules are useful in the production of PHAs in bacteria and plants