Disclosed herein is an in-situ gelling pharmaceutical composition for delivery of minerals, comprising one or more mineral(s), in-situ gelling polymer(s) in the range of 0.01% to 60% viscosity modifier(s) in the range of 0.01% to 5% w/v and at least one pharmaceutically acceptable excipient, in a controlled-release oral dosage form for delivery of minerals within the absorption window of the gastrointestinal tract.