Automatic Differentiation (AD), based on the nonstandard analysis theory, is a new technique in computer numerical analysis. An AD based algorithm for device model parameter extraction is presented. Using this algorithm, the constrained parameter extraction for a surface potential based MOSFET drain current model was done, and the average relative error between calculated and measured current is less than 2%.