Cyclic movement of phosphorus, in varying chemical forms, from the environment to organisms and then back to the environment.