The gross profit percentage formula is calculated by subtracting cost of goods sold from total revenues and dividing the difference by total revenues. Usually a gross profit calculator would rephrase this equation and simply divide the total GP dollar amount we used above by the total revenues.