It is calculated as the sum of the mass of each amino acid using the scale available on Compute pI/Mw tool It also supports mass calculation of proteins with  - Information from www.rdocumentation.org