Map from Google - Sweden

Sweden is very extended in latitude, so that it has different types of climates: the subpolar climate of Lapland and the Scandinavian Alps, the Baltic semi-continental climate of the central and northern coasts (including the capital Stockholm), and the almost oceanic climate of the southern coast and islands.
Compared with Norway, the Swedish climate is usually drier and more continental, therefore colder in winter and warmer and sunnier in summer, because the westerlies, mild and humid winds which prevail throughout the year, are partially blocked by the Scandinavian Mountains, and are able to penetrate with some ease into the Swedish territory only in its southern part.
The Baltic Sea has a limited mitigating function, because it is a closed and not extended sea, especially in the north, where it narrows into the Gulf of Bothnia, which can freeze during the winter.
Here are the average temperatures in the capital Stockholm.
Average temperatures - Stockholm
Min (°F)232327344352555548413427
Max (°F)303037486170726859504134

Precipitation in Sweden is generally abundant: it is lower than 20 inches per year in Lapland, also because of the cold that lasts for many months a year, it hovers around 20/23.5 inches in much of the country, while it exceeds these values in the ridge of the Scandinavian Alps, where it can surpass even 60 inches per year, and along the southwestern coast, exposed to currents Atlantic.
In Stockholm, about 22 inches of rain or snow per year fall, so precipitation is not abundant, although it is well distributed throughout the year, and as happens even in the rest of Sweden, it experiences a minimum in spring, and a maximum in summer. Here is the average precipitation.
Average precipitation - Stockholm
Prec. (in)

Winter is the season with the most noticeable contrasts, between the different parts of the country, but also between different meteorological situations: when Atlantic air masses move over the country, the temperature fluctuates around freezing in much of the country, at least in the plains, and may even exceed it in Stockholm and in southern regions, with rain replacing snow, but when the country is affected by Siberian air masses, the temperature drops across the country, to about -4 °F in the southern regions, and -40 °F in the northern ones.
Even the average winter temperatures vary greatly among different areas, in fact they are around 32 °F in January and February in the far south, 26.5 °F in Stockholm, 14 °F in the north-central part, and 5 °F in the far north. Consequently, even winter's duration varies depending on area, from three months in the far south, to nine months in Lapland. In Sweden, as in general in the Nordic countries, the winter is also characterized by the length of the days: in December the days are very short, and the sun doesn't even rise on winter solstice in the far north; February is typically colder than December, but the days begin to lengthen fairly clearly.
During winter, it often happens that almost all of Sweden is covered by snow, except the southern tip, i.e. the area of Gothenburg and Scania. In milder periods, in which the westerlies blow, the snow melts in a broader area, which often includes Stockholm, while the North remains permanently covered with snow.
In this satellite image we can appreciate such a situation, in which the south of Sweden is free from snow. Note also the sea ice in the northernmost part of the Gulf of Bothnia (Bothnian Bay or Bottenviken in Swedish).

Sweden from the satellite, snow cover in the center-north

Summer in Sweden is usually mild or pleasantly warm, and it is the season of the year with the least differences between north and south. In the northern part, north of the Arctic Circle, in the Swedish part of Lapland, the three summer months (June, July and August) are the only ones in which the temperature rises steadily above freezing, with mild daytime temperatures, around 64/70 °F and sometimes even hot, while nights are still very cool, around 50 °F or below. On the other hand, the maximum temperatures are more or less the same throughout the country. This happens in the plains, because in hill cities, like Kiruna, which is located at 1,800 feet above sea level, the temperatures are slightly lower.
Average temperatures - Kiruna
Min (°F)-20718304145433423101
Max (°F)141825344557635746362318

Even the peaks of summer heat are similar across the country, around 82/90 °F); hot periods are typically short, and do not last more than two or three days.
In the western parts of Sweden, the temperature decreases with of altitude. In the Scandinavian Mountains there are several peaks above 6,500 feet in Lapland, while in the central regions they reach 6,000 feet. The ski season is longer than in the Alps, so much so that the final races of the ski World Cup are normally held in Sweden, in March (eg in Åre). Even the snowline is of course lower than in the Alps, thanks to the colder climate.
At lower altitudes, in the valleys among the mountains, summer is cool, also for the presence of the lakes, which are frozen in winter, and remain cool in summer.
East of the mountain range, there is a plateau with many cities at around 1,000/1,600 feet: here the winter is long and cold, and in summer the daytime temperatures hover around 64 °F, with cool nights, as we can see from the temperatures of Östersund, located in the central part of the country.
Average temperatures - Ostersund
Min (°F)141621283746505043362718
Max (°F)232732415461646354433227

In the southern part of Sweden, the coastline facing west, overlooking the straits of Skagerrak and Kattegat (see Gothenburg), has a wet climate, with skies often cloudy, and also windy, because of the prevalence of the westerlies, however, even here there are frosty periods and snowfalls in winter, when the winds blow from the east.
In Gothenburg, 26 inches of rain or snow fall per year, with a maximum in summer and autumn. Here is the average precipitation.
Average precipitation - Gothenburg
Prec. (in)

In the far south, even Scania (see Malmo) has a climate that shows the influence of the ocean, with average temperatures in January and February around the freezing point, and relatively cool summers; even here there is often cloudiness, wind and rain throughout the year.
Average temperatures - Malmo
Min (°F)272730364552555450453730
Max (°F)363641506168707063544539

The island of Gotland, though less rainy and windy that the southern part of the mainland, has a relatively mild micro-climate, with an average winter temperature around freezing.

In the northernmost part of the Gulf of Bothnia (see Lulea), the sea is often frozen in winter, while it remains cold even in summer, since it reaches at most 57 °F in August.
Here are the average sea temperatures.
Sea temperature - Lulea
Sea (°F)323030323745555754464136

The sea temperature in Stockholm, on the south-east coast, is close to freezing for a few months, while it reaches 61 °F in August.
Sea temperature - Stockholm
Sea (°F)373636364150596155484339

The sea temperature in Malmo, on the south-west coast, is similar to that of Stockholm, just warmer, and reaches 63 °F in July and August.
Sea temperature - Malmo
Sea (°F)373637414857636359524639

When to go

The best time to visit Sweden is summer, from June to August. June is the month with the longest days, with the midnight sun in the north and the white nights (midnight twilights) in the south, but July is the warmest month. From mid-August, the increase in rainfall and the decrease in temperature remind how soon the summer tends to decline at these latitudes.
In winter, the sea freezes in the north (see Lulea), while in July and August it reaches 55/57 °F. As mentioned, the sea temperature reaches 61 °F at Stockholm in August, and 63 °F in Gothenburg and Malmo: therefore it's a bit cold for swimming.

For those who want to visit Sweden in its winter look, in February the days are longer than in December and January, and in March there are still longer days and even warmer temperatures, although it's usually still below freezing, therefore with snow on the ground, at least in the north-central, while in December and January the days are very short. However, the more daring traveler may search just this kind of atmosphere, and maybe plan a Christmas trip to Lapland, with the omnipresent darkness, lightened at times by the aurora borealis.
Even for skiing, March is preferable to the winter months. In June, in the northernmost mountain resorts, you can even ski with the midnight sun.

What to pack

In winter: very warm clothes, especially for the interior and the north: fleece, down jacket, hat, gloves, scarf; for Stockholm and the south, you can add a raincoat or umbrella.
In summer: spring/autumn clothes, being ready to add or remove the outer layer, t-shirt, but also long pants, jacket, sweatshirt or sweater; raincoat or umbrella. Warmer clothes for the mountains.