# Coulomb's Law Calculator API

> For the complete documentation index, see [llms.txt](/llms.txt).

Electrostatic force between two point charges via Coulomb's law, solving for force, charge, or distance with dielectric media.

Use this endpoint to add the tool to your app, site, workflow, or agent without rebuilding formulas, validation, examples, and docs.

- Slug: `coulomb-s-law-calculator`
- Category: `science`
- Version: `2026-04-22`
- Credits per successful call: 1
- Starts on: free
- Max payload: 65536 bytes
- Privacy mode: `hash_only`
- Available on: free, starter, pro, business, scale
- Browser tool: https://miniwebtool.com/coulomb-s-law-calculator/

## Endpoint

`POST https://api.miniwebtool.com/v1/tools/coulomb-s-law-calculator/run`

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `solve_for` | `str` | no | F | q | r Choices: F, q, r |
| `q1` | `float | None` | no | Charge q1 (in charge_unit); required for every mode |
| `q2` | `float | None` | no | Charge q2 (in charge_unit); required for solve_for F and r |
| `charge_unit` | `str` | no | C | mC | uC | nC | pC | e Choices: C, mC, uC, nC, pC, e |
| `distance` | `float | None` | no | Separation distance (required for F and q) |
| `distance_unit` | `str` | no | m | cm | mm | um | nm | km | ft | in Choices: m, cm, mm, um, nm, km, ft, in |
| `force_n` | `float | None` | no | Known force in newtons (solve_for q or r) |
| `medium` | `str` | no | vacuum | air | paper | polystyrene | rubber | teflon | glass | mica | porcelain | silicon | ethanol | water | custom Choices: vacuum, air, paper, polystyrene, rubber, teflon, glass, mica, porcelain, silicon, ethanol, water, custom |
| `custom_epsilon_r` | `float | None` | no | Relative permittivity (medium=custom) |

## Example request

```json
{
  "solve_for": "F",
  "q1": 1,
  "q2": -2,
  "charge_unit": "uC",
  "distance": 0.5,
  "distance_unit": "m"
}
```

## cURL

```bash
curl -X POST https://api.miniwebtool.com/v1/tools/coulomb-s-law-calculator/run \
  -H 'Authorization: Bearer mwt_live_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"solve_for":"F","q1":1,"q2":-2,"charge_unit":"uC","distance":0.5,"distance_unit":"m"}'
```

## Response envelope

```json
{
  "request_id": "01K...",
  "tool": "coulomb-s-law-calculator",
  "tool_version": "2026-04-22",
  "credits_used": 1,
  "result": {}
}
```

## Errors

Errors are RFC 7807 `application/problem+json`. Branch on `code`, not `title`.

## MCP

Agents can discover and call this tool through `https://api.miniwebtool.com/mcp` or `https://api.miniwebtool.com/v1/mcp` using MCP `tools/list` and `tools/call`.

## Frequently asked

### What does the Coulomb's Law Calculator API do?

Electrostatic force between two point charges via Coulomb's law, solving for force, charge, or distance with dielectric media. Use it to add this utility without rebuilding formulas, validation, examples, and documentation.

### How much does one call cost?

1 credit per successful call. Failed calls do not bill.

### What parameters are required?

Required fields: (none). Full schema at `https://api.miniwebtool.com/v1/openapi.json`.

### Is this deterministic?

Yes. Same input, same output. Tool version: 2026-04-22.
