PostgreSQL Math Functions

Below is a full list of mathematical functions available in PostgreSQL.

These are arranged into the following four categories:

  • Mathematical Functions
  • Random Functions
  • Trigonometric Functions
  • Hyperbolic Functions

Mathematical Functions

Random Functions

Trigonometric Functions

Each trigonometric function is available in two varieties; radian-based and degree-based.

Radians

Degrees

Hyperbolic Functions