Mathematical models are developed for single and multi-stage membrane processes to simulate gas separation in MATLAB®. The single-stage membrane process simulations are validated through comparison with mixed-gas experimental results at different operating condition. Based on this validated single-stage process model, multi-stage membrane processes including 2 or 3 stages membranes with recycle streams are simulated. The resulting simulation outputs are shown to reproduce experiment results with reasonable accuracy. Hence, this process modeling framework can be utilized in future design and optimization studies.