A magnet assembly is provided including a housing having a first end and a second end. A magnet is placed within a recess formed in the first end of the housing and a spring is positioned in at least a portion of the second end of the housing. A method of mounting a magnet assembly in a tool is provided. The method includes providing a magnet assembly including a housing having a recess formed in a first end of the housing and a spring positioned in a second end of the housing. The method further includes placing the magnet assembly into an opening defined in a tool and placing a magnet into the recess, and pressing the magnet against the spring to position the magnet within the tool.