All-electric buildings are playing an important role in the electrification plan towards energy-neutral smart cities. Batteries are key components in all-electric buildings that can help the demand-side energy management as a flexibility asset and improve the building survivability in the case of power outages as an active survivability asset. This paper introduces a novel methodology and indexes for determining cost-effective battery sizes. It also explores the possible trade-off between energy flexibility and the survivability of all-electric buildings. The introduced methodology uses IDA-ICE 4.8 as a building performance simulation tool and MATLAB® 2017 as a post-processing calculation tool for quantifying building energy flexibility and survivability indexes. The proposed methodology is applied to a case study of a Norwegian single-family house, where 10 competitive designs, 16 uncertainty scenarios, and 3 dynamic pricing tariffs suggested by the Norwegian regulators are investigated. The methodology provides informative support for different stakeholders to compare various building designs and dynamic pricing tariffs from the flexibility and survivability points of view. Overall, the results indicate that larger cost-effective batteries usually have higher active survivability and lower energy flexibility from cost- effectiveness perspective. For instance, when the time of use tariff is applied, the cost-effective battery size varies between 40 and 65 kWh (daily storage). This is associated with a cost-effective flexibility index of 0.4–0.55%/kWh and an active survivability index of 63–80%.