The cost of hair transplant surgery can be determined based on various factors, including the desired area, density, type of transplant, and hair quality. Charging by the number of grafts is also a common practice, as it allows for better cost estimation and understanding of the expected result.