pKb from Kb calculator
Ammonia's Kb of about 1.8 × 10⁻⁵ becomes a pKb of about 4.74: enter any positive Kb from a table, a lab fit or another calculator and get its pKb directly, without a concentration or a pH. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Base dissociation constant Kb
- 0.000018
- Pkb
- 4.7447274949
The base dissociation constant Kb measures how strongly a base accepts protons in water. Chemists often report strength on a compact logarithmic scale called pKb, defined as the negative base-ten logarithm of Kb. This capability takes one positive finite Kb value and returns the matching pKb with a pure deterministic formula—no network calls, no temperature tables, and no random behaviour. Zero or negative Kb is rejected with a clear invalid input error because the real logarithm is undefined and would never describe a physical equilibrium constant.
What Kb and pKb mean and when this conversion applies
Kb is the equilibrium constant for the reaction of a base with water that produces hydroxide ion and the conjugate acid. Larger Kb means a stronger base and a higher equilibrium hydroxide concentration for a given analytical concentration. pKb is simply the negative base-ten log of that constant, so strong bases have small pKb values and weak bases have large pKb values. For example, ammonia with Kb near one point eight times ten to the minus five has pKb near four point seven four at the usual textbook temperature.
This calculator does not require concentration, pH, or Kw: if you already know Kb from a table, a lab fit, or another tool, pKb is a direct logarithm. Use this tool when the search question is specifically pKb from Kb rather than a full acid–base equilibrium package.
How to read the pKb result
For a classic weak-base example with kb equal to one point eight times ten to the minus five you get pkb near four point seven four. For kb equal to one times ten to the minus three you get pkb equal to three. For kb equal to one you get pkb equal to zero, the neutral log boundary on the strength scale.
Prefer the structured pkb number for pipelines and auto-graders; use formula when a human-readable caption is enough for a report or slide.
What you can do with it
Lab notebook and LIMS helpers
Bench apps convert recorded Kb into pKb fields for sample records without re-deriving the log formula in every language.
FAQ
Is the pKb from Kb calculator free?
The browser tool runs free on your device.
Does this convert pKa to pKb?
No. This product starts from Kb and returns only pKb. For conjugate-pair conversions that need Ka, Kw, or temperature context, use a dedicated acid–base pair tool.
Is a base with a small pKb strong or weak?
Strong. A larger Kb means the base takes up protons more readily, and the negative logarithm turns a larger Kb into a smaller pKb. Weak bases such as ammonia therefore sit at larger pKb values.
Which Kb values make quick checks?
A Kb of 1 gives a pKb of 0, the boundary point on the strength scale, and a Kb of 1 × 10⁻³ gives exactly 3. Running one of these first is a fast way to confirm your entry is read correctly.
What if I type a Kb of zero or a negative number?
The calculator refuses it and says that Kb must be positive. A real logarithm of zero or a negative value does not exist, so no pKb is invented for it; correct the entry and try again.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/chem/pkb-from-kb \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"kb":0.000018}'const res = await fetch("https://api.kit.forhosting.com/chem/pkb-from-kb", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"kb": 0.000018
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/chem/pkb-from-kb",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"kb": 0.000018
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/chem/pkb-from-kb", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"kb":0.000018}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"kb":0.000018}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/chem/pkb-from-kb", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"kb": 0.000018
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "chem.pkb_from_kb",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Students checking weak-base homework, tutors building auto-graded drills, and pipelines that already store tabulated Kb can pin the JSON in tests.
What Kb and pKb mean and when this conversion applies
Send the required field kb as a JSON number or a numeric string; aliases Kb, K_b, and base_dissociation_constant are accepted. Missing fields, empty strings, non-numeric text, zero, and negative values fail with invalid_input and are not charged. Identical numeric inputs always produce identical JSON because the path is pure arithmetic with no wall clock, no seed, and no remote chemistry database.
Reading the response fields and the pKb formula
On success the response echoes the parsed kb, reports pkb as the negative base-ten logarithm of that value, and restates the identity in the formula string as pKb equals minus log base ten of Kb. The method label is always pkb_from_kb so downstream code can branch without sniffing shapes. Validation failures for zero or negative Kb never invent a logarithm—they surface invalid_input with a message that names the field and the expectation that Kb must be positive.
API usage, pricing, classroom workflows, and practical limits
Call the free in-browser pKb from Kb calculator for homework checks, lecture demos, and quick lab-bench verification without installing spreadsheet macros or a local chemistry package. The model does not adjust Kw for other temperatures, does not solve ICE tables, and does not accept pH or ion concentrations as primary inputs—those are different search intents and different products. Authors shipping SDKs can map pkb directly into UI tables that show Kb beside pKb—the same layout students write by hand when they convert dissociation constants on paper. Send a JSON body with the required positive finite number kb. Use the prepaid API when a tutoring platform, LMS auto-grader, curriculum generator, or lab notebook service needs a stable contract under KIT balance at $0.002 per successful item; validation failures never consume balance after the engine rejects the request. Pair this endpoint with Ka or pKa tools when you work conjugate pairs, or with hydroxide and pOH calculators when the next step is solution pH estimates for weak bases.
Integration use cases
Homework and exam verification
Students enter a tabulated Kb and check pKb against answer keys; zero or negative Kb returns a clear invalid_input error instead of a silent wrong number.
Tutoring and curriculum generators
Lesson builders produce worked Kb → pKb examples with structured JSON for flashcards, step sheets, and auto-graded drills.
Technical questions
How do I calculate pKb from Kb?
Send JSON with kb set to a positive finite number (for example kb: 1.8e-5). The response includes pkb equal to −log10(Kb).
What happens if Kb is zero or negative?
The request fails with invalid_input. pKb = −log10(Kb) is only defined for positive Kb; zero and negative values are rejected and not charged.
What formula does this calculator use?
It uses pKb = −log10(Kb). The formula string is always returned in the JSON response for display and auditing.