Ketogenic compositions including a beta-hydroxybutyrate (BHB) mixed salt are formulated to induce or sustain ketosis in a subject to which the ketogenic compositions are administered. The BHB mixed salt is formulated to provide a biologically balanced set of cationic electrolytes, and is formulated to avoid detrimental health effects associated with imbalanced electrolyte ratios. A ketogenic composition includes BHB salts of at least sodium, potassium, calcium, and magnesium. The BHB salts may also include at least other component such as a BHB compound containing other cations, such as transition metal cations (e.g., zinc or iron), a BHB-amino acid salts, medium chain fatty acid source, vitamin D3, flavorant, or other excipient.