May depend on the roles and or applications installed. I'd plan on at least 60 gB free space. Also consider a migration as this is a much cleaner / safer method.
https://learn.microsoft.com/en-us/windows-server/get-started/perform-in-place-upgrade
--please don't forget to upvote
and Accept as answer
if the reply is helpful--