Map from Google - Washington

The climate of Washington, D.C. (District of Columbia), the US federal capital, is semi-continental, with cold winters, sometimes snowy, and hot and muggy summers. The city is located at the 38th parallel, a little half-way between the cold and the warm half of the United States. In winter it can be affected by cold air masses coming from Canada, but less frequently than in New York; in summer the heat is felt, with long periods of sunshine and hot weather, but also with salutary afternoon or evening thunderstorms that come to temporarily break the heat.
Here are the average temperatures of the Reagan National Airport, a few kilometres (or miles) south of the city center, in Arlington County, Virginia; here a mild microclimate is found, because of the Potomac river that widens becoming almost a lake, so lows are a couple of degrees Celsius higher than in peripheral areas and in the surrounding countryside.
Average temperatures - Washington
Min (°C)-2-13814192221171050
Max (°C)681319242931302620148
Min (°F)283037465766727063504132
Max (°F)434655667584888679685746

Precipitation in Washington is quite abundant, since it amounts to about 1,000 millimetres (40 inches) per year, and is well distributed throughout the year. In summer, the rains occur, as well as for the passage of some disturbances, mainly because of afternoon or evening thunderstorms.
Here is the average precipitation.
Average precipitation - Washington
Prec. (mm)70659080100959575958580751005
Prec. (in)

Winter, from December to February, is cold: the average temperature is just above freezing (0 °C or 32 °F). At night, light frosts occur frequently, or lows around 0 °C (32 °F), while during the day the temperature typically exceeds freezing by a few degrees. The weather is unstable, so that sunny days alternate with rapid outbreaks of cold air, with snowfall and temperatures around freezing; in these situations the wind can exacerbate the feeling of cold. In a year, an average of about 40 centimetres (15.5 in) of snow falls (while in the Dulles Airport, actually located 37 km (23 mi) north-west of the city, in the state of Virginia, snowfall arrives at 65 cm or 26 inches). Big snowstorms, which can block or slow down many activities, called Snowmageddon, occur on average every 4/5 years. During the most intense cold waves, in which the temperature remains below 0 °C (32 °F) even during the day, lows can plunge to -15 °C (5 °F), and sometimes even -20 °C (-4 °F).
However, there may also be a day, or periods of a few days, particularly mild, in which the temperature can touch 15 °C (59 °F), and sometimes even 20 °C (68 °F), which confirms the instability of the climate of Washington and in general of the American East Coast.

In spring, from March to May, the weather continues to be unstable: the first warm days alternate to the return of the cold. In March it can still snow, and sometimes this can also happen in early April. But already in April sometimes the temperature can exceed 25 °C (77 °F).
The National Cherry Blossom Festival lasts three weeks and starts on the last Sunday of March (ending therefore in mid-April), when the cherry trees from Japan, donated at the beginning of the 20th century by the mayor of Tokyo, are in bloom.
In May, by now the average temperatures are pleasant, although there are still cool and rainy days, especially in the first half, while the first heat waves can bring the temperature above 30 °C (86 °F). On sunny days, also the first afternoon thunderstorms can erupt.

Summer, from June to August, is hot and muggy, especially in July and August. The days with pleasant temperatures, around 25/27 °C (77/81 °F), maybe even rainy, are possible, but more often there are hot and sultry days, with highs around 30 °C (86 °F). There may also be heat waves, which can last a week, and in which the daytime temperature can reach or exceed 35 °C (95 °F), and even the night temperatures remains high, around 25/26 °C (77/79 °F). More rarely, as in July 2012, temperatures can touch 40 °C (104 °F). The sunshine amount during the summer is good, even though, in addition to the passage of some disturbances, which can bring clouds and rain, in fine weather thunderstorms may break out in the afternoon.

Autumn, from September to November, is the mildest season of the year and the less unstable, at least in the first part. In the first half of September the weather is often still characterized by heat and humidity, with sunshine and some afternoon thunderstorms, then it becomes milder and relatively quiet until mid-October, while the second half of October can start to be a bit cold. November is by now a cold month, in which the first snowfalls can occur. The rains are not lacking even in autumn, but this is still the season when the rains are a little less frequent.

The amount of sunshine in Washington is good in summer, but it is not scarce even in winter, because as mentioned some sunny days can always occur. On average, there are 9.5 hours of sunshine per day in June and 9 July, and 4/4.5 in December and January.

Lincoln memorial from above

For swimming, the sea along the coast to the east of Washington, in the Chesapeake Bay (see Chesapeake Beach, Annapolis), about an hour's drive from town, is a bit warmer than on the Atlantic Coast (see Dewey Beach, Ocean City), where in summer the temperature is around one degree Celsius lower.
Here is the average sea temperature in Atlantic City, on the Atlantic coast, a little north of Ocean City.
Sea temperature - Atlantic City
Atlantic CityJanFebMarAprMayJunJulAugSepOctNovDec
Sea (°C)6446111722232117139
Sea (°F)433939435263727370635548

When to go

The best periods to visit Washington are spring and autumn, to avoid both the winter cold and the summer heat, and in particular from mid-April to mid-May, and from mid-September to mid-October. In early September there's often still a sticky heat, though not as intense as in midsummer. In April, sometimes it can get cold and the weather can be unstable, especially at the beginning of the month, while generally the second half of the month is mild.
In autumn (usually around late October) you can admire the beautiful colours of the trees shedding leaves (the phenomenon called fall foliage).