Optical character recognition (OCR) is the conversion of printed or written text from a scanned document or image file into a machine-readable form to be used for data processing like editing. Handwriting has been a way of communication for centuries, but modern technology has made it easier with the introduction of modern computers. While people have adapted to typing out words using a keyboard, formulas and mathematical expressions requires additional add-ons installed in the word processor. The process can be time consuming and tedious. Therefore, an alternative method is proposed in this paper in which handwritten mathematical formulas are converted into computer readable text. Horizontal and vertical projection is used for segmentation while convolutional neural network for character recognition is used to increase the recognition accuracy. The proposed method was able to segment out handwritten mathematical equations from lined papers as well as extract out and identify each character written. The handwritten equation was then successfully converted to a digital format.