carrying past losses forward

We already have the losses from prior years.  We are using them to offset this years gains.  Where do I put the information?  Into what form?