A button mechanism is provided, including a housing, a fixing member fixed on the housing, a moving member movably disposed in the fixing member, a pressing member disposed on the moving member, and a driving module for moving the moving member relative to the fixing member. When the pressing member pushes the moving member to move from an initial position along a first direction to a first position, the driving member moves the moving member from the first position along the first direction to a second position. When the moving member is in the second position, the driving member moves the moving member along a second direction to impact the pressing member, wherein the first direction is opposite to the second direction.