The Assembly of Madrid was the devolved, unicameral legislature of the autonomous community of Madrid, having legislative power in regional matters as defined by the Spanish Constitution and the Madrilenian Statute of Autonomy, as well as the ability to vote confidence in or withdraw it from a President of the Community. Voting for the Assembly was on the basis of universal suffrage, which comprised all nationals over eighteen, registered in the Community of Madrid and in full enjoyment of their political rights. All members of the Assembly of Madrid were elected using the D'Hondt method and a closed list proportional representation, with a threshold of 5 percent of valid votes—which included blank ballots—being applied regionally. Parties not reaching the threshold were not taken into consideration for seat distribution. The Assembly was entitled to one member per each 50,000 inhabitants or fraction greater than 25,000. The electoral law provided that parties, federations, coalitions and groupings of electors were allowed to present lists of candidates. However, groupings of electors were required to secure the signature of at least 0.5 percent of the electors registered in the Community of Madrid. Electors were barred from signing for more than one list of candidates. Concurrently, parties and federations intending to enter in coalition to take part jointly at an election were required to inform the relevant Electoral Commission within ten days of the election being called.
Election date
The term of the Assembly of Madrid expired four years after the date of its previous election. The election Decree was required to be issued no later than the twenty-fifth day prior to the date of expiry of parliament and published on the following day in the Official Gazette of the Community of Madrid, with election day taking place between the fifty-fourth and the sixtieth day from publication and set so as to make them coincide with other concurrent elections when possible. The previous election was held on 8 May 1983, which meant that the legislature's term would have expired on 8 May 1987. The election Decree was required to be published no later than 14 April 1987, with the election taking place no later than the sixtieth day from publication, setting the latest possible election date for the Assembly on Saturday, 13 June 1987. The Assembly of Madrid could not be dissolved before the date of expiry of parliament except in the event of an investiture process failing to elect a regional President within a two-month period from the first ballot. In such a case, the Assembly was to be automatically dissolved and a snap election called, with elected deputies merely serving out what remained of their four-year terms.
Opinion polls
The table below lists voting intention estimates in reverse chronological order, showing the most recent first and using the dates when the survey fieldwork was done, as opposed to the date of publication. Where the fieldwork dates are unknown, the date of publication is given instead. The highest percentage figure in each polling survey is displayed with its background shaded in the leading party's colour. If a tie ensues, this is applied to the figures with the highest percentages. The "Lead" column on the right shows the percentage-point difference between the parties with the highest percentages in a given poll. When available, seat projections are also displayed below the voting estimates in a smaller font. 49 seats were required for an absolute majority in the Assembly of Madrid.
Results
Overall
Elected legislators
The following table lists the elected legislators sorted by order of election.
Aftermath
Government formation
Investiture processes to elect the President of the Community of Madrid required for an absolute majority—more than half the votes cast—to be obtained in the first ballot. If unsuccessful, a new ballot would be held 48 hours later requiring of a simple majority—more affirmative than negative votes—to succeed. If none of such majorities were achieved, successive candidate proposals could be processed under the same procedure. In the event of the investiture process failing to elect a regional President within a two-month period from the first ballot, the Assembly would be automatically dissolved and a snap election called.