Non-EU visitors on a short stay may spend no more than 90 days in any 180-day period in the Schengen area. The window is rolling: on any given day, look back 180 days and count the days you were in Schengen. It is one total across all Schengen countries, not 90 days per country.
The European Commission offers an official short-stay calculator on its Home Affairs website. Bulgaria and Romania have been full Schengen members since 1 January 2025; Ireland and Cyprus are in the EU but not in Schengen.