The optimal time to make a trip to Costa Rica is in the dry season, between December and April, when the weather is bright and great for the beach, spotting wildlife, and doing outdoor activities. May to June and September to October are nice shoulder seasons, alternatives if you are aiming at fewer tourists and lower prices, but you will probably get some rain.