It takes about 6-8 hours for royal icing to fully dry to the point where you can stack cookies.