Accurate real-time pore pressure prediction is crucial especially in drilling operations technically and economically. Its prediction will save costs, time and even the right decisions can be taken before problems occur. The available correlations for pore pressure prediction depend on logging data, formation characteristics, and combination of logging and drilling parameters. The objective of this work is to apply artificial neural networks (ANN) and adaptive neuro-fuzzy inference system (ANFIS) to introduce two models to estimate the formation pressure gradient in real-time through the available drilling data. The used parameters include rate of penetration (ROP), mud flow rate (Q), standpipe pressure (SPP), and rotary speed (RS). A data set obtained from some vertical wells was utilized to develop the predictive model. A different set of data was utilized for validating the proposed artificial intelligence (AI) models. Both models forecasted the output with a good correlation coefficient (R) for training and testing. Moreover, the average absolute percentage error (AAPE) did not exceed 2.1%. For validation stage, the developed models estimated the pressure gradient with a good accuracy. This study proves the reliability of the proposed models to estimate the pressure gradient while drilling using drilling data. Moreover, an ANN-based correlation is provided and can be directly used by introducing the optimized weights and biases, whenever the drilling parameters are available, instead of running the ANN model.