With a Roth 401(k), taxes are paid as money is put into the retirement account. With a traditional 401(k), taxes are paid as money is taken out.