It’s not possible to calculate compression before the process is complete and data is stored. Also, results differ based on the type of data being compressed. That being said, it’s possible to calculate the compression rate by dividing the compressed file size with the original file size and multiplying the result by 100.