This study presents a data-driven framework for optimizing net-zero building design by integrating urban context, building form, and façade configurations. Using parametric modeling, genetic optimization, and empirical validation, it examines energy performance across the building-height-to-street-width ratio, number of floors, aspect ratio, floor area, window-wall ratio, and photovoltaics’ tilt angle. Results indicate that context compactness increases heating demand by 2.1 kWh/m2 (0.195 kWh/ft2) and reduces cooling demand by 1.8 kWh/m2 (0.167 kWh/ft2) per incremental increase: higher floor area and building height enhanced energy efficiency. Building height marginally influenced heating and cooling for an aspect ratio above 5, peaking at 4. Façade-based production escalated by 10,000 kWh per unit after the aspect ratio exceeded 2. Photovoltaics’ tilt angle significantly impacted consumption and production.