In this article, we derive a boundary element formulation for the pricing of barrier option. The price of a barrier option is modeled as the solution of Black-Scholes’ equation. Then the problem is transformed to a boundary value problem of heat equation with a moving boundary. The boundary integral representation and integral equation are derived. A boundary element method is designed to solve the integral equation. Special quadrature rules for the singular integral are used. A numerical example is also demonstrated. This boundary element formulation is correct.