A brake hydraulic pressure control apparatus for a vehicle, the brake hydraulic pressure control apparatus comprising: a base body formed with a channel of a brake fluid; a motor assembly that includes a rotor and a stator and drives a pump device provided in the channel; a control board of a controller that controls the motor assembly; and a housing that accommodates the control board, and further comprising: a permanent magnet that is attached to the motor assembly and rotates with the rotor; and a detection sensor that detects a magnetic field generated by the permanent magnet, wherein the motor assembly is arranged in a space that is surrounded by the base body and the housing, the control board is arranged in a rotation axis direction of the rotor in a manner to oppose the permanent magnet, and the detection sensor is mounted on the control board, characterised in that the motor assembly includes: a coil that is wound around the stator; and a feeding terminal that is connected to the coil and the control board and is used when being supplied with electric power from the control board, one end of the feeding terminal is connected to the coil, and a distance in the rotation axis direction from an end of the feeding terminal, which is not connected to the coil, to the stator is longer than a distance in the rotation axis direction from an end of the permanent magnet, which is on a side opposing the control board, to the stator. a base body formed with a channel of a brake fluid; a motor assembly that includes a rotor and a stator and drives a pump device provided in the channel; a control board of a controller that controls the motor assembly; and a housing that accommodates the control board, and further comprising: a permanent magnet that is attached to the motor assembly and rotates with the rotor; and a detection sensor that detects a magnetic field generated by the permanent magnet, wherein the motor assembly is arranged in a space that is surrounded by the base body and the housing, the control board is arranged in a rotation axis direction of the rotor in a manner to oppose the permanent magnet, and the detection sensor is mounted on the control board, a permanent magnet that is attached to the motor assembly and rotates with the rotor; and a detection sensor that detects a magnetic field generated by the permanent magnet, wherein the motor assembly is arranged in a space that is surrounded by the base body and the housing, the control board is arranged in a rotation axis direction of the rotor in a manner to oppose the permanent magnet, and the detection sensor is mounted on the control board, characterised in that the motor assembly includes: a coil that is wound around the stator; and a feeding terminal that is connected to the coil and the control board and is used when being supplied with electric power from the control board, a coil that is wound around the stator; and a feeding terminal that is connected to the coil and the control board and is used when being supplied with electric power from the control board, one end of the feeding terminal is connected to the coil, and a distance in the rotation axis direction from an end of the feeding terminal, which is not connected to the coil, to the stator is longer than a distance in the rotation axis direction from an end of the permanent magnet, which is on a side opposing the control board, to the stator.