Cover your knees and do not wear a sleeveless or low-cut top. Take your hat off. That is the plain reading of the Vatican Museums' clothing rule, which they apply to the Museums, the Sistine Chapel, St Peter's Basilica and the Vatican Gardens.
What do the Museums say?
Their visitor page says entry is only for appropriately dressed visitors. The English text says sleeveless or low-cut garments, shorts above the knee, miniskirts and hats are not permitted. It also mentions visible signs, including some tattoos, that staff may judge offensive. The page is Useful information for visitors.
A short-sleeved shirt is not described as sleeveless. Knees covered means the hem reaches the knee, not a hand's width above it. Staff at the door apply the rule. A layer you take off inside does not count.
Does the same rule apply in St Peter's?
The Museums' sentence includes St Peter's Basilica. The church is a separate entrance, and the same standard is what people are turned away for: bare shoulders, short shorts, short skirts, hats still on. The dome climb is the same building. If you are dressed for the Museums, you are dressed for the basilica.
What should I wear in summer?
Light clothes that still meet the rule. Linen or cotton trousers, or a skirt or shorts that cover the knee, and a shirt with sleeves. The Museums warn that air conditioning is limited in busy rooms, so the point of light cloth is comfort, not a vest top. Bring the layer you will keep on, rather than a scarf you plan to drop into a bag.
Hats and caps come off indoors. They are fine in the queue outside.
What about bags and the chapel?
Large bags, suitcases and big umbrellas go to the cloakroom before the galleries. The Museums say that service is free, and they tell you not to leave luggage there if you are continuing to the basilica, because you would have to come back for it.
In the Sistine Chapel, silence, and no photos. Phones stay unused. None of that is a dress rule, but it is the other reason people get stopped. For how entry times work, read how Vatican Museums entry works.
The same clothing rule applies at a Christmas service in St Peter's. Dates and tickets are in the Christmas in Rome guide.
