Due to rising awareness of environmental issue and regulation of the European EuP (Energy Using Products) directive, eco-design requirements for energy-using products are becoming important issues. This study develops a mathematical model for the optimization of energy consumption and cost of notebook computer for the four stages of eco-design, namely, raw materials extraction and processing, manufacturing, using and end-of-life. This optimization is done for each stage and the overall of four stages. At the first two stages, production is involved; when defect items occur, repair is needed. Items after repair are assumed to have a lower quality level. In addition, we explore the energy consumption and cost of the two stages of using and end-of-life for various quality levels of parts and products obtained from the two stages of raw materials extraction and manufacturing, respectively. Finally, we analyze the effect of the ratio of manufacturing cost to repair cost on product cost.