I am looking for some information to find out if there is a place to store suitcase in madrid at barajas airport for couple hours in order to go and visit the city.
There are left luggage facilities in the Adolfo Suárez Madrid Barajas airport. Quoting from the dedicated webpage of the airport website:
Left luggage offices
There are two left luggage office at Madrid Airport.
- Terminal T4, floor 0, arrivals hall.
- Terminal T1, floor 0, in front of hall 2 in the garden area. This office provides services to terminals T1, T2 and T3.
Contact phone of the luggage office information service at T1 917 466 065.
Contact phone of the luggage office information service at T4 917 466 065.
At the time of writing the price for storing luggage is calculated depending on service usage time. Storing luggage up to 2h costs 6
EUR, whilst storing luggage for up to 24h and every consecutive day costs 10
EUR per day. Reduced rates for continuous usage are available.
If you visit the city, it might be a cheaper option to leave your luggage there. Can't say for sure without knowing your circumstances.