This in vitro study compared temperature rises during cavity preparation with an Er:YAG laser, Nd:YAP laser, and a high-speed handpiece. Eighteen teeth were sectioned longitudinally and divided into six groups: group 1 was treated with a carbide bur on a high-speed dental handpiece; group 2 was treated with an Er:YAG laser with an energy of 140 mJ, a pulse repetition rate of 4 Hz; and group 3 was treated with an Nd:YAP laser with an energy of 240 mJ, a pulse repetition rate of 10 Hz. In these groups no water cooling was used. Groups 4 to 6 were treated in the same way, but with water spray. Temperature increases were measured at different dentin thicknesses by a microthermocouple attached to the inner side of the pulp chamber. Water cooling was essential to reduce temperature effects in all groups. Nd:YAP laser induced significantly higher temperature rises than Er:YAG or handpiece. Temperature response to the Er:YAG laser and the handpiece seemed to be similar.