The invention provides compositions and methods for producing androstenedione (4-androstenedione), of improved purity and for modulating its production, for example by deletion or inactivation of ksdA, cxgA, cxgB, cxgC, or cxgD. The invention also provides methods and compositions, including nucleic acids that encode enzymes, for producing 1,4-androstadiene-3,17-dione (ADD) and related pathway compounds, including 20-(hydroxymethyl) pregna-4-en-3-one and 20-(hydroxymethyl)pregna-1,4-dien-3-one. The compositions of the invention include nucleic acids, probes, vectors, cells, transgenic plants and seeds, transgenic animals, kits and arrays.