A variational calculation of the ground state of a neutral exciton and of positively and negatively charged excitons (trions) in a single quantum well is presented. We study the dependence of the correlation energy and of the binding energy on the well width and on the hole mass. Our results are compared with previous theoretical results and with available experimental data.