Filing Previous Years Investment Gains & Losses

I've been investing on my own in the last few years but didn't realize I needed to file gains/losses until recently. How can I file for previous years? Do I need to re-file those years' taxes, or can I just file the previous older gains/losses with my next tax submission?