Three-dimensional (3D) MHD numerical simulations have not been able to demonstrate convincingly the spontaneous formation of large vertical flux tubes. Two-dimensional (2D) magnetoconvection in axisymmetric cylinders forms a central magnetic flux tube surrounded by annular convection rings. To study the robustness of this type of solution in three dimensions, the nonlinear resistive MHD equations are solved numerically in a 3D cylindrical wedge from an initially uniform vertical magnetic field. It is shown that the 2D result is retrieved for small domain radii. However, for larger radii the central axis loses its importance and in this case many convection cells form in the numerical domain. Magnetic flux is captured between cells where flow converges and the reduced amount of flux that congregates at the central axis is eroded by the surrounding convection.