Abstract. We introduce an algorithm based on semidefinite programming that yields increasing (resp., decreasing) sequences of lower (resp., upper) bounds on polynomial stationary averages of diffusions with polynomial drift vector and diffusion coefficients. The bounds are obtained by optimizing an objective, determined by the stationary average of interest, over the set of real vectors defined by certain linear equalities and semidefinite inequalities which are satisfied by the moments of any stationary measure of the diffusion. We exemplify the use of the approach through several applications: a Bayesian inference problem; the computation of Lyapunov exponents of linear ordinary differential equations perturbed by multiplicative white noise; and a reliability problem from structural mechanics. Additionally, we prove that the bounds converge to the infimum and supremum of the set of stationary averages for certain SDEs associated with the computation of the Lyapunov exponents, and we provide numerical evidence of convergence in more general settings.Key words. stochastic differential equations, stationary measures, semidefinite programming, moment problems, Lyapunov exponents AMS subject classifications. 60H10, 60H35, 90C22, 37M25 DOI. 10.1137/16M107801X1. Introduction. Stochastic differential equations (SDEs) and the diffusion processes they generate are important modeling tools in numerous scientific fields, such as chemistry, economics, physics, biology, finance, and epidemiology [22]. Stationary measures are to SDEs what fixed points are to deterministic systems: if the SDE is stable, then its stationary measures determine its long-term statistics. More concretely, both the ensemble averages and the time averages of the process converge to averages with respect to a stationary measure (which we call stationary averages). For the majority of SDEs, there are no known analytical expressions for their stationary measures. Consequently, large efforts have been directed at developing computational tools that estimate stationary averages and, more generally, at developing tools that can be used to study the long-term behavior of SDEs. Among these, most prominent are Monte Carlo discretization schemes, PDE methods (finite-difference, finiteelement, and Galerkin methods), path integral methods, moment closure methods, and linearization techniques (see, e.g., [39,6,43,45]).The purpose of this paper is to introduce a new algorithm that provides an al-