The propagation of laser light in human tissues is an important issue in functional optical imaging. We modeled the thermal effect of different laser powers with various spot sizes and different head tissue characteristics on neonatal and adult quasirealistic head models. The photothermal effect of near-infrared laser (800 nm) was investigated by numerical simulation using finite-element analysis. Our results demonstrate that the maximum temperature increase on the brain for laser irradiance between 0.127 (1 mW) and [Formula: see text] (100 mW) at a 1 mm spot size, ranged from 0.0025°C to 0.26°C and from 0.03°C to 2.85°C at depths of 15.9 and 4.9 mm in the adult and neonatal brain, respectively. Due to the shorter distance of the head layers from the neonatal head surface, the maximum temperature increase was higher in the neonatal brain than in the adult brain. Our results also show that, at constant power, spot size changes had a lesser heating effect on deeper tissues. While the constraints for safe laser irradiation to the brain are dictated by skin safety, these results can be useful to optimize laser parameters for a variety of laser applications in the brain. Moreover, combining simulation and adequate in vitro experiments could help to develop more effective optical imaging to avoid possible tissue damage.