The castle is open daily during the summer months from May till September. But during the rest of the year (from October till May), it's only open on weekends. The steam train ride is only open in the summer, from May till September.
Entrance to Gripsholm Castle is free with the Stockholm Pass, the sightseeing city card which can be purchased online.