There are so many places worth a day trip from Madrid and this is one of them. In wanting to find a…read moreplace that could be a longer half day trip (but not more than this due to the short duration of my trip), this monastery appealed to me in that the commute time via public transportation is about an hour from Madrid Chamartin, or only about a 40 min drive (€40 rideshare price) from the western edge of Madrid city center. Certainly you could take more time around town and make this a full day trip in addition to visiting the Valle de los Caídos (the Valley of the Fallen) monument, there are a number of bus tours that run this exact itinerary.
Departing from Madrid Chamartin the Cercanius C8 line arrives at El Escorial station, from which it's about a 25 minute walk or 15 min bus ride to the monastery which is the major tourist destination in town. The town itself is quaint and nice to take a stroll around to get a feel of a suburban downtown area.
Tickets are available online and in-person by time slot and while in late September I didn't see times fully booked I imagine during peak tourist season you should book at least a few days in advance. Inside larger bags need to checked in lockers (€1 euro deposit for the lock mechanism function, returned upon unlocking the cubby), and then you follow signs indicating the direction of the tour starting from the main courtyard.
Two highlights for me were a) the library with beautiful ceiling murals and filled with antique books, b) the elaborate pantheon crypt facility which are in current functional use as burial chambers for Spanish monarchy. I also appreciated that almost all the description placards were translated into English so there was a lot of information to learn.
The grounds and gardens are very expansive and well maintained around the main complex so plenty of tourists and locals alike were enjoying a walk in the afternoon. Bathrooms are located within the building only after ticketed entry. There are plenty of restaurants and cafes within a 5-15 minute walking distance from the main entry/exit of the monastery where you can grab a snack, drink or meal.