A battery assembly for electrical cigarette includes a housing provided with a cavity for receiving a battery, a main button movably disposed on the housing and a locking member slidably located on the housing, sliding the locking member can lock the main button such that the main button is not triggered. The battery assembly can effectively reduce the battery depletion. An electronic cigarette is also provided.