To calculate the parts in a ratio, you need to add the ratio terms together to get the total number of parts, and then divide the value by that total to determine the size of each part. For example, if a value is shared in the ratio 2:3, the total ratio is 2+3=5, and each part is 1/5 of the value.