BACKGROUNDStruvite (MgNH4PO4.6H2O) precipitation is a sustainable approach that can offer simultaneous removal/recovery of nutrients from biogas plant effluents. Yet, most biogas plant effluents contain a higher molar concentration of nitrogen than magnesium and phosphorus. Therefore, the external addition of magnesium and phosphate salts is needed to maximize the recovery. In this study, waste magnesite powder and phosphorus found in bone meal were used as sustainable additives. The Box–Behnken design was applied to determine optimum conditions of process parameters (pH, Mg:N, and P:N molar ratio) to maximize the NH4‐N, PO4‐P, and Mg2+ recovery.RESULTSNH4‐N, PO4‐P, and Mg2+ recoveries ranged between 78.5% – 96.9%, 69.2% – 96.3%, and 75.1% – 99.9%, respectively. The actual and predicted values showed significant consistency, indicating that the model is satisfactory. Under optimum conditions (pH = 9.0, Mg:N = 2.2, and P:N = 1.8), 97.8 ± 0.1% NH4‐N, 96.6 ± 0.31% PO4‐P and 84.4 ± 0.9% Mg2+ recovery were attained. The X‐ray diffraction results confirmed the sole presence of struvite crystals. Scanning electron microscopy images showed irregular prismatic orthorhombic crystals and amorphous material depositions on precipitates with ~25 μm crystal size. The product was 49% struvite with 15.2% P content. The heavy metal content was lower than regulatory limits.CONCLUSIONEven though waste material and industrial by‐products have been used as additives in this process, high NH4‐N and PO4‐P recovery were recorded under optimum conditions. These results are promising and illustrate a powerful example of industrial symbiosis, and the precipitate containing struvite can serve as a valuable product.This article is protected by copyright. All rights reserved.