It will depend on what you are trying to update/install. Many things take up more than they say they do. At least temporarily, making the amount it tells you not completely correct.
The numbers you have saying how much is available, where are you getting it from? In "Settings" and "Storage"? and if getting from there, then what is the exact line you are seeing that number you shared before coming from? Or is this from a different area?