The balance of inverted pendulum on inclined surfaces is the precursor to their control in unstructured environments. Researchers have devised control algorithms with feedback from contact (encoders—placed at the pendulum joint) and noncontact (gyroscopes, tilt) sensors. We present feedback control of inverted pendulum cart (IPC) on variable inclines using noncontact sensors and a modified error function. The system is in the state of equilibrium when it is not accelerating and not falling over (rotational equilibrium). This is achieved when the pendulum is aligned along the gravity vector. The control feedback is obtained from noncontact sensors comprising a pair of accelerometers placed on the inverted pendulum and one on the cart. The proposed modified error function is composed of the dynamic (nongravity) acceleration of the pendulum and the velocity of the cart. We prove that the system is in equilibrium when the modified error is zero. We present algorithm to calculate the dynamic acceleration and angle of the pendulum, and incline angle using accelerometer readings. Here, the cart velocity and acceleration are assumed to be proportional to the motor angular velocity and acceleration. Thereafter, we perform simulation using noisy sensors to illustrate the balance of IPC on surfaces with unknown inclination angles using proportional-integral-derivative feedback controller with saturated motor torque, including valley profile that resembles a downhill, flat, and uphill combination. The successful control of the system using the proposed modified error function and accelerometer feedback argues for future design of controllers for unstructured and unknown environments using all-accelerometer feedback.