How to Add Solver in Excel: Windows and Mac Step-by-Step Guide

Learn how to add Solver in Excel on Windows and Mac. Step-by-step instructions to enable the Solver add-in for optimization and data analysis.

Microsoft ExcelBy Katherine LeeMay 27, 202613 min read
How to Add Solver in Excel: Windows and Mac Step-by-Step Guide

If you've ever tried to figure out the best allocation of resources — maximum profit with a limited budget, minimum cost given certain requirements — you already understand the problem Solver is built to solve. Solver is a Microsoft Excel add-in that finds the optimal value for a formula in one cell by adjusting a group of other cells, all while respecting constraints you define.

It's not enabled by default in any version of Excel. You have to turn it on first, which takes about 30 seconds once you know where to look. This guide covers how to add Solver on Excel for both Windows and Mac — including Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365. You'll walk away knowing exactly where the settings live on each platform, what to do if Solver isn't in the list, how to configure the main parameters correctly, and how to actually use it once it's running.

Solver is technically an optimization engine. At its core, it uses mathematical programming to search through many possible combinations of variable values and find the one that produces the best objective value without violating any constraint. That sounds abstract — but in practice it means asking questions like: what's the cheapest staffing schedule that covers every shift? What mix of investments gives the highest return for a given risk level? What production quantities maximize profit given limited machine time and raw materials?

These are problems that Excel users have been solving with Solver for decades. It's one of the most practical tools in Excel for anyone dealing with resource constraints, tradeoffs, or optimization across multiple variables. You don't need a background in operations research to use it — just a clear understanding of your objective, your decision variables, and the constraints that bound them.

Microsoft Excel - Microsoft Excel certification study resource

Solver by the Numbers

3Solving algorithms (Simplex LP, GRG Nonlinear, Evolutionary)
200+Variable cells supported in a single model
30sTypical time to enable Solver on Windows or Mac
Excel 5Version when Solver was first included (early 1990s)

Solver has been part of Microsoft Excel since Excel 5 in the early 1990s, developed by Frontline Systems. The same company still maintains and updates it today, which is why it remains one of the more reliable add-ins in the Office ecosystem. Microsoft ships it as a standard add-in with every copy of Excel — you won't need to download anything separately in most cases, it just needs to be activated.

The process to add Solver in Excel on Mac follows a different path than Windows, but both are straightforward once you know where to look. On Windows you go through the File menu and Options dialog. On Mac you use the Tools menu in the macOS menu bar — not the ribbon.

The exact menu item name matters on Mac: you want Excel Add-ins specifically, not Add-ins or Web Add-ins, which are different lists entirely. If you've tried to enable Solver before and couldn't find it, there's a good chance you were in the wrong menu. Both platforms take about four clicks from start to finish.

One thing that surprises new users: Solver doesn't appear in the ribbon immediately when you open a new workbook even after installing Excel. It's a latent add-in that ships with Excel but waits for you to activate it. Once you've done that on a given machine, it stays enabled across all workbooks on that machine — you don't need to enable it separately for each file. The only time you'd need to re-enable it is after a major Office update or if you've moved to a new computer.

Solver pairs naturally with other data analysis in Excel workflows. If you're comfortable with Excel pivot tables already, Solver takes that analytical mindset further — instead of just summarizing what happened, it tells you what the best outcome can be. Pivot tables describe data; Solver prescribes action.

How to Add Solver in Excel on Windows

The steps below work for Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365 on Windows. Microsoft kept the same navigation path across all these versions. The key thing to know upfront: Solver is an Excel Add-in, not a COM Add-in. When you reach the Manage dropdown at the bottom of the Add-Ins panel, it must say Excel Add-ins before you click Go — otherwise you'll be looking at the wrong list and Solver won't appear there.

Enable Solver: Platform Instructions

These steps apply to Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365 on Windows. The menu path is the same across all versions.

  1. Open Excel and click the File tab in the top-left corner of the ribbon.
  2. Select Options near the bottom of the left sidebar. The Excel Options dialog opens.
  3. In the left panel, click Add-Ins.
  4. At the bottom of the Add-Ins panel, find the Manage dropdown. Make sure it says Excel Add-ins, then click Go...
  5. The Add-Ins dialog appears. Check the box next to Solver Add-in.
  6. Click OK.
  7. Open the Data tab — you'll see Solver in the Analyze group on the far right.

Tip: If Solver Add-in doesn't appear in the list, click Browse to locate solver.xlam manually. It's usually under C:\Program Files\Microsoft Office\root\Office16\Library\SOLVER.

Excellence Playa Mujeres - Microsoft Excel certification study resource

After enabling Solver, click the Data tab on the ribbon. On Windows, Solver appears in the Analyze group on the far right. On Mac, it's in the Analysis group in the same position. If you don't see it immediately, close Excel completely and reopen it — the add-in sometimes doesn't register until a fresh launch.

One common mistake on Mac: there are two different add-in menus under Tools. Tools > Add-ins and Tools > Excel Add-ins are separate lists. Solver lives in Excel Add-ins, not the plain Add-ins menu. If you went to the wrong one, just go back to Tools and try the other item.

On Windows, if the Manage dropdown shows COM Add-ins instead of Excel Add-ins when you click Go, you'll see a completely different list where Solver won't appear. Reset the dropdown to Excel Add-ins before clicking Go.

Solver Solving Methods at a Glance

Simplex LP

Use for linear problems where all relationships are proportional — resource allocation, transportation, scheduling. Fastest method, always finds the true global optimum. No starting value sensitivity.

GRG Nonlinear

Use when formulas include products of variables, exponents, logs, or other nonlinear operations. Iterative gradient method — starting values matter. Enable Multistart option for better global coverage.

Evolutionary

Use for problems with discontinuous or non-smooth functions that GRG can't handle — IF statements, ABS, ROUND inside the model. Slowest but most flexible. Set a random seed in Options for reproducibility.

Understanding Solver Parameters

Once Solver is enabled, click the Solver button to open the Solver Parameters dialog. Three main sections define your optimization problem, and each one is worth understanding before you enter values.

Set Objective

The objective cell holds the formula you want to optimize. Enter its cell reference, then choose whether to maximize it, minimize it, or hit a specific value. Most use cases are either Max (maximize profit, output) or Min (minimize cost, waste).

The value option is handy for break-even calculations — set it to 0 and ask Solver what variable settings produce a net result of zero. The objective cell must contain a formula that depends on your variable cells either directly or through a chain of references. If it doesn't change when variable cells change, Solver has nothing to work with. Before you click Solve, double-check that the objective cell formula references the variable cell range — this is the most common setup mistake for first-time users.

By Changing Variable Cells

These are the decision variables — the cells Solver is allowed to modify to reach your objective. You might enter a single cell like C2 or a range like C2:C10. Keep this list to only the cells that represent real decisions in your model. Solver won't touch any cell not listed here, so your formulas, constants, and labels stay untouched.

Starting values matter more with GRG Nonlinear and Evolutionary methods than with Simplex LP. With nonlinear solving, Solver starts from wherever your variable cells currently are and moves from there. Put reasonable starting guesses in those cells before clicking Solve — arbitrary zeros or extreme values can lead the algorithm to a poor local solution.

You can also use the Solver Options dialog to set bounds on variable cells without adding formal constraints. This is useful when you know variables must stay within a physical range (for example, a temperature setting between 0 and 100) and you don't want to clutter the formal constraint list.

Subject to the Constraints

Constraints tell Solver what it can't do. Click Add to enter each one. A constraint has three parts: a cell or range on the left, a comparison operator in the middle (=, <=, >=, int, bin, or dif), and a value or cell on the right. If your variables can't go negative, add C2:C10 >= 0. If total budget must stay under $50,000, add D15 <= 50000.

The int option forces variables to whole numbers — useful when scheduling whole shifts or producing whole units. The bin option restricts a variable to 0 or 1 for yes-or-no decisions (include this project or not). The dif option requires all cells in a range to have different values, useful in sequencing and assignment problems where you need unique assignments.

Once everything is configured, click Solve. The results dialog lets you accept the solution (updating your spreadsheet) or restore the original values. It also offers three optional reports: Answer (which constraints were binding or slack), Sensitivity (shadow prices — how much the objective changes per unit change in each constraint's right-hand side), and Limits (ranges within which variables can move without changing the optimal solution). The Sensitivity Report only works with Simplex LP — it's one of the most analytically useful outputs Solver produces, showing you where additional resources would add the most value.

Solver integrates naturally with other modeling tools. Use a slicer in Excel to filter your dataset down to the scenario you want to optimize before running Solver. After getting results, use compare two Excel spreadsheets to put the before and after side by side — a clean way to document what the optimization changed for a report or presentation. This combination of tools — Solver for optimization plus comparison tools for documentation — is a practical workflow that analysts use regularly.

Worked Example: Maximizing Profit with Two Products

Here's a concrete problem that shows how to add Solver in Excel on Mac or Windows and put it to work immediately. You run a small business making two products. You want the production mix that gives the highest total profit without exceeding your available labor and materials.

Your data:

  • Product A: $40 profit per unit, 2 labor hours per unit, 1 kg material per unit
  • Product B: $30 profit per unit, 1 labor hour per unit, 2 kg material per unit
  • Total labor available: 100 hours
  • Total material available: 80 kg
  • No negative production quantities

Set up the spreadsheet like this:

  • C2 = units of A to produce (start at 0)
  • C3 = units of B to produce (start at 0)
  • B10 = =40*C2+30*C3 — total profit (your objective cell)
  • D2 = =2*C2+C3 — labor used
  • D3 = =C2+2*C3 — material used

In Solver: Set Objective = B10, Max. By Changing: C2:C3. Constraints: D2 <= 100, D3 <= 80, C2 >= 0, C3 >= 0. Solving Method: Simplex LP. Click Solve.

Solver returns: C2 = 40, C3 = 20. Total profit = $2,200. Both constraints are binding — you've hit both the labor and material limits simultaneously. That's important information: adding more of either resource would increase profit, and the Sensitivity Report tells you exactly by how much per additional unit. This kind of analysis used to require a specialist. Solver puts it directly in your hands.

This linear programming structure appears constantly in real work. It's how airlines assign crew to flights, manufacturers decide production quantities, and logistics companies route deliveries. The math is identical whether you're optimizing two products or two hundred. Solver handles models with hundreds of variable cells without difficulty, though very large nonlinear models may require specialized software beyond what Excel can offer.

Excel Spreadsheet - Microsoft Excel certification study resource

Before You Click Solve: Quick Model Checklist

  • Objective cell contains a formula that depends on the variable cells
  • Variable cells have reasonable starting values (not all zeros for nonlinear models)
  • Every real-world constraint is entered in the constraints list
  • Non-negativity constraints added if variables can't be negative
  • Integer constraints added for variables that must be whole numbers
  • Correct solving method selected: Simplex LP for linear, GRG Nonlinear for curves
  • Variable cell range doesn't accidentally include formula cells or headers

Troubleshooting Common Solver Issues

Even after knowing how to add Solver in Excel on Mac or Windows, a few problems come up once you start using it on real models.

Solver could not find a feasible solution. Your constraints contradict each other — no combination of variable values satisfies all of them at once. Start by removing the most recently added constraint. If Solver then finds a solution, that constraint is the problem. Review values carefully; a <= where you meant >= is a common typo. Also check that constraint references point to the right cells — easy to misalign after inserting or deleting rows.

Solver keeps running without finishing. Complex problems with many variable cells, or Evolutionary method without tight bounds, can run for a very long time. Open Solver Options (the Options button inside Solver Parameters) and lower Max Time or Max Iterations. This forces Solver to stop and report its best-so-far result. You can also simplify the model — fewer variables, tighter starting bounds, or switching from Evolutionary to GRG Nonlinear where possible.

Solution looks wrong or unreasonable. With GRG Nonlinear and Evolutionary, Solver may find a local optimum rather than the global best. Run Solver several times with different starting values in your variable cells. If you consistently get the same answer from different starting points, it's likely the true optimum. With Simplex LP this isn't a concern — linear problems have exactly one global optimum and Simplex always finds it.

Solver disappears from Data tab after an Office update. Office updates on both Windows and Mac occasionally reset the add-in list. After any major update, check the Data tab. If Solver is gone, re-enable it the same way you first enabled it — takes 30 seconds and doesn't affect your workbooks or saved Solver models.

Different answer each time you run Solver. This happens with the Evolutionary method — it uses random processes so results vary between runs. Set a random seed in Solver Options to make the algorithm deterministic. Alternatively, switch to GRG Nonlinear with the Multistart option turned on, which is generally more reliable for most nonlinear problems and gives consistent results.

Once you're comfortable with Solver, it changes how you approach quantitative decisions in Excel. When you're facing a resource allocation problem with a dozen constraints, it's the fastest path from question to answer. Finance, operations, logistics, supply chain, HR scheduling — wherever tradeoffs and limits intersect, Solver does the heavy lifting that would otherwise require advanced math or endless trial and error. Getting it enabled is the easy part. The rest is building a clear, well-structured model and letting Excel's algorithm do the work.

One last tip that experienced Solver users rely on: save your Solver model before you run it. The Model button in the Solver Parameters dialog lets you save the current setup to a range of cells in your worksheet. That way, if you experiment with different constraints and want to return to a previous configuration, you can load it back instantly.

This is especially useful when testing multiple scenarios — different budget levels, different resource constraints — without rebuilding the model from scratch each time. It's a small habit that pays off significantly once your optimization models become complex with many interacting constraints and decision variables to manage and test.

Solver Add-in: What Works Well and What to Watch For

Pros
  • +Free and built into Excel — no additional software or license required
  • +Handles linear, nonlinear, and integer programming problems in one tool
  • +Sensitivity Report (Simplex LP) provides shadow prices and ranging analysis
  • +Scales to models with hundreds of variable cells without performance issues
  • +Results are immediately reflected in your spreadsheet — no data export needed
Cons
  • Not available in Excel Online — desktop app required on Windows or Mac
  • Must be manually re-enabled after major Office updates on both platforms
  • GRG Nonlinear and Evolutionary methods can find local optima, not always global
  • Evolutionary method results vary between runs unless a random seed is set
  • Very large nonlinear models with thousands of variables may exceed Solver's practical limits

Excel Questions and Answers

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.