Anaerobic digestion (AD) offers an efficient means for treating sludge generated in wastewater treatment plants (WWTPs), but nutrient-rich AD dewatering sidestream contributes as much as 30 % of the overall nutrient loading of WWTPs. Several electrochemical approaches are being developed as a sidestream treatment strategy to prevent return of nutrients to WWTP headworks and recover them for fertilizer production. One such method is to produce acids and bases, essential chemicals necessary to facilitate nutrient recovery, using bipolar membrane electrodialysis (BMED). In this study we show simultaneous separation of nutrients and production of acid/base streams with an additional consideration for increasing the concentration of ammonium and phosphate in the final product stream by systematically altering compartment flow rates and hence the retention time of each stream. Using a three-compartment BMED system with a synthetic sidestream containing 50 mM NH3-N and 2 mM PO4-P, we achieved up to 80 % ammonia removal (via a cation exchange membrane) and up to 60 % phosphate removal (via an anion exchange membrane) at a productivity of 34.2 L m−2 h−1. Separated ammonia was recovered (>90 %) in a subsequent membrane contactor (MC) that was fed with acid and base streams produced by the BMED unit. A phosphate recovery > 80 % was achieved by chemical precipitation (CP). In a combined BMED-MC-CP process, the concentrated final product contained 333.9 mM NH3-N and 3.1 mM PO4-P with an energy consumption of 8.9 kWh kg−1 N recovered. These results illustrate that the BMED-based treatment train is a promising strategy for nutrient recovery from AD dewatering sidestream.