File Exchange

image thumbnail

Power Factor Correction with Capacitor Bank Tool

version 1.0.6 (172 KB) by Charles Kennedy
Given real power and reactive power, and reactive demand compensation, see the change in phase angle, power factor, Appr. Power.


Updated 25 Jun 2020

View License

Run the .m file to use the GUI (or drag the .m file into the command window)

Peak Real Power(P)
Peak Reactive Power(Q)
Proposed Capacitor Bank (kVAr)
*Estimated Monthly Penalty ($)

Phase Angle: ɵ = arctan(Q/P)
Power Factor: pf = cos(ɵ)
Apparent Power: S = P / pf
*Yearly Savings: Monthly Penalty x 12

*(assumes you're designing to compensate for a reactive demand charge and that you will chose a value for you capacitor bank that will fully compensate the reactive demand)

Cite As

Charles Kennedy (2020). Power Factor Correction with Capacitor Bank Tool (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

I am new to this mathworks, I have another question, is the option to save enabled? If so, in what format are the results saved and in what folder are these saved?

Since I'm working on a project, I need those results in a text format.
Thank you very much in advance and the latest version worked, thank you have a good day.

That problem should be fixed now, just needed to open in GUIDE and save the file under the correct name. Download the latest version and try again. Have a nice day.

Greetings, when I download the program, it is giving me an error in some functions of the code they say that they are not used in the program, if you help me with that, I would really appreciate it.



Added Linux version with graphics adjusted.




added 2nd visual aid


updated description


Size and spacing adjustments


added image for visual understanding

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux