Log P can be determined experimentally or estimated using computational methods. The experimental determination involves measuring the concentration of a compound in water and octanol, then calculating the log of the ratio. Computational methods often use quantitative structure-activity relationship (QSAR) models to predict log P based on the chemical structure, providing a quicker and less resource-intensive approach.