The purpose of this study was first to evaluate the elution of 2-hydroxyethyl methacrylate (HEMA) and triethylene glycol dimethacrylate (TEGDMA) monomers from resin-modified glass ionomer cement (RMGIC) and compomers cured with halogen and light-emitting diode (LED) light-curing units (LCUs). The effect of cured materials on the viability of L929 fibroblast cells was also evaluated. One RMGIC (Ketac N100) and two compomers (Dyract Extra and Twinkystar) were tested. Materials were prepared in teflon disks and light-cured with LED or halogen LCUs. The residual monomers of resin materials in solution were identified using high-performance liquid chromatography. The fibroblast cells' viability was analyzed using MTT assay. The type of LCU did not have a significant effect on the elution of HEMA and TEGDMA. A greater amount of HEMA than TEGMDA was eluted. The amount of TEGDMA eluted from Twinkystar was greater than Dyract Extra (P < 0.05) when cured with a halogen LCU. All material-LCU combinations decreased the fibroblast cells' viability more than the control group (P < 0.01), except for Dyract Extra cured with a halogen LCU (P > 0.05). Curing with the LED LCU decreased the cells' viability more than curing with the halogen LCU for compomers. For Ketac N100, the halogen LCU decreased the cells' viability more than the LED LCU.