Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • System Modeler

    Multidomain modeling and simulation of complex systems

  • Compute ServicesUse with Mathematica and Wolfram|One
  • AI AccessUse with Mathematica and Wolfram|One
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Wolfram|Alpha

  • Wolfram|Alpha Website
  • Wolfram|Alpha APIs

AI Products

  • Wolfram AI Ecosystem
  • Wolfram Foundation Tool
  • Wolfram Cloud MCP
  • Wolfram Local MCP
  • Agent One API
  • CAG Component APIs

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • Linguistic Understanding

Additional Deployment Options

  • Wolfram Cloud
  • Wolfram Web Engine
  • wolframscript
  • WSTPServer
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

Wolfram Consulting

Data Science, Finance & Business

  • Artificial Intelligence
  • Data Science
  • Healthcare
  • Real Estate

Engineering

  • Civil Engineering
  • Automotive Engineering
  • Sustainable Energy

Science & Technology

  • AgTech
  • Biosciences
  • Environmental Science
  • Food Science
  • Quantum Computation
  • Social and Behavioral Sciences

More Wolfram Solutions

Technology for Education

  • Research Universities
  • Colleges & Teaching Universities
  • High Schools
  • Resources for Students

Education Initiatives

  • Next-Gen EdTech
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
For AIs
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • System Modeler
    • Compute ServicesUse with Mathematica and Wolfram|One
    • AI AccessUse with Mathematica and Wolfram|One
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Wolfram|Alpha
      • Wolfram|Alpha Website
      • Wolfram|Alpha APIs
    • AI Products
      • Wolfram AI Ecosystem
      • Wolfram Foundation Tool
      • Wolfram Cloud MCP
      • Wolfram Local MCP
      • Agent One API
      • CAG Component APIs
    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • Linguistic Understanding
    • Additional Deployment Options
      • Wolfram Cloud
      • Wolfram Web Engine
      • wolframscript
      • WSTPServer
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions
    • Wolfram Consulting

    Data Science, Finance & Business

    • Artificial Intelligence
    • Data Science
    • Healthcare
    • Real Estate

    Engineering

    • Civil Engineering
    • Automotive Engineering
    • Sustainable Energy

    Science & Technology

    • AgTech
    • Biosciences
    • Environmental Science
    • Food Science
    • Quantum Computation
    • Social and Behavioral Sciences

    More Wolfram Solutions

    Technology for Education

    • Research Universities
    • Colleges & Teaching Universities
    • High Schools
    • Resources for Students

    Education Initiatives

    • Next-Gen EdTech
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • For AIs
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
WorkingPrecision
  • See Also
    • PrecisionGoal
    • AccuracyGoal
    • Precision
    • Accuracy
    • N
    • Tolerance
  • Related Guides
    • Precision & Accuracy Control
    • Differential Equations
    • Time Measurement & Optimization
    • Neural Network Construction & Properties
    • Wavelet Analysis
  • Tech Notes
    • Numerical Integration
    • See Also
      • PrecisionGoal
      • AccuracyGoal
      • Precision
      • Accuracy
      • N
      • Tolerance
    • Related Guides
      • Precision & Accuracy Control
      • Differential Equations
      • Time Measurement & Optimization
      • Neural Network Construction & Properties
      • Wavelet Analysis
    • Tech Notes
      • Numerical Integration

WorkingPrecision

is an option for various numerical operations that specifies how many digits of precision should be maintained in internal computations.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Possible Issues  
See Also
Tech Notes
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • PrecisionGoal
    • AccuracyGoal
    • Precision
    • Accuracy
    • N
    • Tolerance
  • Related Guides
    • Precision & Accuracy Control
    • Differential Equations
    • Time Measurement & Optimization
    • Neural Network Construction & Properties
    • Wavelet Analysis
  • Tech Notes
    • Numerical Integration
    • See Also
      • PrecisionGoal
      • AccuracyGoal
      • Precision
      • Accuracy
      • N
      • Tolerance
    • Related Guides
      • Precision & Accuracy Control
      • Differential Equations
      • Time Measurement & Optimization
      • Neural Network Construction & Properties
      • Wavelet Analysis
    • Tech Notes
      • Numerical Integration

WorkingPrecision

WorkingPrecision

is an option for various numerical operations that specifies how many digits of precision should be maintained in internal computations.

Details

  • WorkingPrecision is an option for such functions as NIntegrate and FindRoot.
  • Setting WorkingPrecision->n causes all internal computations to be done to at most n‐digit precision.
  • Setting WorkingPrecision->MachinePrecision causes all internal computations to be done with machine numbers.
  • Even if internal computations are done to n‐digit precision, the final results you get may have much lower precision.

Examples

open all close all

Basic Examples  (2)

Find a root using 60-digit precision arithmetic:

Wolfram Language code: FindRoot[x ^ 2 - 2, {x, 1}, WorkingPrecision -> 60]

Solve a differential equation using 24-digit precision arithmetic:

Wolfram Language code: NDSolve[{x''[t] + x[t] / (1 + t ^ 2) == 0, x[0] == 1, x'[0] == 0}, x, {t, 0, 50}, WorkingPrecision -> 24]
Wolfram Language code: Plot[First[x[t] /. %], {t, 0, 50}]

Scope  (4)

Evaluate the function using 24-digit precision arithmetic:

Wolfram Language code: f[x_ ? NumberQ] := x ^ 2 / 2 + Cos[x] - 1
Wolfram Language code: Plot[f[x], {x, -0.0001, 0.0001}, WorkingPrecision -> 24]

Without higher precision you see mainly numerical roundoff error:

Wolfram Language code: Plot[f[x], {x, -0.0001, 0.0001}]

Approximate an integral using 24-digit precision arithmetic:

Wolfram Language code: NIntegrate[1 / Sqrt[Sin[x]], {x, 0, 1}, WorkingPrecision -> 24]

The PrecisionGoal is automatically increased to be 10 less than the working precision:

Wolfram Language code: NIntegrate[1 / Sqrt[Sin[x]], {x, 0, 1}, WorkingPrecision -> 24, PrecisionGoal -> 14]

Find a minimum of a function, adaptively increasing the precision up to 50 digits:

Wolfram Language code: FindMinimum[Cos[x ^ 2 + y ^ 2] + Sin[x ^ 2 y], {{x, 1.}, {y, 1.}}, WorkingPrecision -> 50]

The PrecisionGoal and AccuracyGoal are automatically set to be half the final precision:

Wolfram Language code: FindMinimum[Cos[x ^ 2 + y ^ 2] + Sin[x ^ 2 y], {{x, 1.}, {y, 1.}}, WorkingPrecision -> 50, PrecisionGoal -> 25, AccuracyGoal -> 25]

Solve a differential equation with 32-digit precision arithmetic:

Wolfram Language code: sol = NDSolve[{x''[t] + x[t] == 0, x[0] == 1, x'[0] == 0}, x, {t, 0, 10}, WorkingPrecision -> 32];

The PrecisionGoal and AccuracyGoal are set to be half of the working precision:

Wolfram Language code: sap = NDSolve[{x''[t] + x[t] == 0, x[0] == 1, x'[0] == 0}, x, {t, 0, 10}, WorkingPrecision -> 32, PrecisionGoal -> 16, AccuracyGoal -> 16];
Wolfram Language code: Plot[Evaluate[{First[x[t] /. sol], First[x[t] /. sap]} - Cos[t]], {t, 0, 10}, WorkingPrecision -> 24]

Using InterpolationOrder->All will reduce the errors between steps:

Wolfram Language code: sall = NDSolve[{x''[t] + x[t] == 0, x[0] == 1, x'[0] == 0}, x, {t, 0, 10}, WorkingPrecision -> 32, InterpolationOrder -> All]; Plot[Evaluate[First[x[t] /. sall] - Cos[t]], {t, 0, 10}, WorkingPrecision -> 24]

Applications  (1)

Check the quality of a solution to Duffing's equation by using a sequence of solution precisions:

Wolfram Language code: deqn = Block[{γ = 15 / 100, ϵ = 3 / 10, ω = 1}, {x''[t] + γ x'[t] - x[t] + x[t] ^ 3 == ϵ Cos[ω t], x[0] == 1, x'[0] == 0}];
Wolfram Language code: smp = First[x /. NDSolve[deqn, x, {t, 0, 100}, Method -> {"Extrapolation", "StiffnessTest" -> False}]]
Wolfram Language code: Plot[smp[t], {t, 0, 100}]

Make a sequence of solutions at successively higher working precision:

Wolfram Language code: sols = Table[First[x /. NDSolve[deqn, x, {t, 0, 100}, Method -> {"Extrapolation", "StiffnessTest" -> False}, WorkingPrecision -> wp]], {wp, 18, 36, 3}];

A plot shows that some of the solutions deviate toward the end:

Wolfram Language code: Plot[Evaluate[Map[#[t]&, sols]], {t, 80, 100}]

Plot the solution x[100] as a function of working precision:

Wolfram Language code: s100 = Map[#[100]&, sols]; ListPlot[s100, DataRange -> {18, 36}]

Convergence to the solution at the highest precision indicates about 6 digits can be trusted:

Wolfram Language code: best = s100[[-1]];ListPlot[Log[10, Abs[Drop[s100, -1] - best]], DataRange -> {18, 33}]

Possible Issues  (2)

Low-precision parameters in functions may invalidate the use of higher-precision arithmetic:

Wolfram Language code: two = Total[ConstantArray[.00001, 200000]]
Wolfram Language code: sqrt2 = FindRoot[x ^ 2 - two, {x, 1}, WorkingPrecision -> 100]

The result is a poor approximation to :

Wolfram Language code: Sqrt[2] - x /. %

Use of exact parameters allows comparison at different precisions:

Wolfram Language code: etwo = SetPrecision[two, Infinity]
Wolfram Language code: Table[{wp, Sqrt[etwo] - x /. FindRoot[x ^ 2 - etwo, {x, 1}, WorkingPrecision -> wp]}, {wp, 20, 100, 10}]

Expect solution times to increase exponentially as a function of working precision:

Wolfram Language code: deqn = Block[{γ = 15 / 100, ϵ = 3 / 10, ω = 1}, {x''[t] + γ x'[t] - x[t] + x[t] ^ 3 == ϵ Cos[ω t], x[0] == 1, x'[0] == 0}];
Wolfram Language code: times = Table[{wp, First[Timing[First[x /. NDSolve[deqn, x, {t, 0, 100}, WorkingPrecision -> wp, Method -> "StiffnessSwitching"]]]]}, {wp, Join[{MachinePrecision}, Range[20, 160, 10]]}]; TableForm[times, TableHeadings -> {{}, {"Precision", "Timing"}}]

A log plot of the computation time as a function of working precision:

Wolfram Language code: ListLogPlot[times]

See Also

PrecisionGoal  AccuracyGoal  Precision  Accuracy  N  Tolerance

Tech Notes

    ▪
  • Numerical Integration

Related Guides

    ▪
  • Precision & Accuracy Control
  • ▪
  • Differential Equations
  • ▪
  • Time Measurement & Optimization
  • ▪
  • Neural Network Construction & Properties
  • ▪
  • Wavelet Analysis

History

Introduced in 1988 (1.0) | Updated in 2003 (5.0)

Wolfram Research (1988), WorkingPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/WorkingPrecision.html (updated 2003).

Text

Wolfram Research (1988), WorkingPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/WorkingPrecision.html (updated 2003).

CMS

Wolfram Language. 1988. "WorkingPrecision." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/WorkingPrecision.html.

APA

Wolfram Language. (1988). WorkingPrecision. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WorkingPrecision.html

BibTeX

@misc{reference.wolfram_2026_workingprecision, author="Wolfram Research", title="{WorkingPrecision}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/WorkingPrecision.html}", note=[Accessed: 01-September-2026]}

BibLaTeX

@online{reference.wolfram_2026_workingprecision, organization={Wolfram Research}, title={WorkingPrecision}, year={2003}, url={https://reference.wolfram.com/language/ref/WorkingPrecision.html}, note=[Accessed: 01-September-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • AI Access
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English