For a family of 4, you need an 8 to 10 GPM gas tankless water heater or a 20 to 28kW electric tankless water heater.