Accurate simulations of metamaterial devices are very important in the analysis of their electromagnetic properties. However, it is very difficult to make full-wave simulations of three-dimensional (3D) metamaterial devices due to the huge memory requirements and long computing time. In this paper, we present an efficient finiteelement method (FEM) to analyze 3D axisymmetric electromagnetic devices designed by the transformation-optics approach, such as invisibility cloaks and concentrators. In the proposed method, we use the edge-based vector basis functions to expand the transverse field components, and the node-based scalar basis functions to expand the angular component. The FEM mesh is truncated with a cylindrical perfectly matched layer. We have applied the method to investigate the scattering from spherical and ellipsoidal invisibility cloaks and circularly cylindrical concentrators, in which the permittivity and permeability are both inhomogeneous and anisotropic. Numerical results are presented to show the validity and efficiency of the method.