A Word Of Introduction

Harry Markowitz

A good portfolio is more than a long list of good stocks and bonds. It is a balanced whole, providing the investor with protections and opportunities with respect to a wide range of contingencies.

Harry Markowitz, Nobel Laureate, pioneer of the modern portfolio theory

Why Portfolio Optimizer

Creating an investment portfolio as a balanced whole - in the modern portfolio theory sense - requires complex mathematical algorithms.

Portfolio Optimizer exposes these algorithms as an easy to use Web API, thus democratizing the access to the Nobel Prize-winning science of portfolio optimization.


Free, no registration required

Portfolio Optimizer is a 100% free to use Web API, with no need to provide contact information.

Too good to be true?

No coding skills required

As a Web API, Portfolio Optimizer is usable from web pages, from Microsoft Excel, from Google Sheets

No PhD in mathematics required

Portfolio Optimizer hides the complexity of portfolio optimization algorithms behind well-designed Web API endpoints.

Want the caveats?

Get Started

Below is the Portfolio Optimizer Web API call to compute the long-only minimum variance portfolio of 2 assets with covariance matrix $\begin{bmatrix} 0.0025 & 0.0005 \newline 0.0005 & 0.01 \end{bmatrix}$:

        { method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({ assets: 2,
                                 assetsCovarianceMatrix: [[0.0025, 0.0005],
                                                          [0.0005, 0.0100]] 


What’s Next

Browse the documentation

API Documentation

Experiment with the different endpoints

API Documentation Console

Search the blog for examples of usage


Reach out for any questions you may have


Stay Updated

Subscribe to Portfolio Optimizer’s news feed to receive the latest blog posts by email.


Portfolio Optimizer is free to use, but not free to run (nor to develop!).

If you appreciate the service, one way to show appreciation is to