# Heckel mean yield pressure from relative density against compaction pressure

`form_heckel_fit` · Runs: On the server · Level: Its source was not read. Its calculation agreed with a separately written implementation on recorded cases, edges and refusals included, and with the outside program the note names, or the note says none exists. Both implementations were written from the same documents, so a misreading they share would not be caught. Cross-checked here; source not read

Fits the Heckel line of ln(1/(1 − D)) on pressure, giving slope K and apparent mean yield pressure 1/K.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Formulation](https://www.drybench.com/mcp/catalogue/formulation)

[Ask your assistant](https://www.drybench.com/mcp/connect)

```cite
Heckel mean yield pressure from relative density against compaction pressure (form_heckel_fit), Drybench MCP server 1.0.0; form-heckel-fit@1.1.1 (Cross-checked here; source not read); https://www.drybench.com/mcp/tools/form-heckel-fit
```

## What it is

Returns the Heckel slope K, intercept, apparent mean yield pressure Py = 1/K, SE(K) and R² of ln(1/(1 − D)) on pressure. Use when compaction data give relative density, or in-die thickness, at several pressures and you choose the linear region. Not for a general straight-line fit: use \`relate\_linear\_regression\`; not for tapped-density indices: use \`form\_powder\_compressibility\`. Region inclusive; refuses D ≥ 1 inside it; no standard error for Py, an apparent value that depends on how it was measured (in die or out of die). Not for tablet tensile strength.

Field: [Formulation and stability](https://www.drybench.com/mcp/catalogue/formulation).

## What it does

**You give**

- `given` (required): relative\_density: each point gives its relative density D. in\_die\_geometry: each point gives the compact thickness in the die, and \`geometry\` the mass, the true density and the punch size, so D = m/(true density × punch area × thickness); with measurement out\_of\_die, compute D from the compact's own dimensions and choose relative\_density. Required, never inferred.
- `measurement` (required): in\_die: measured in the die under load; out\_of\_die: measured on ejected compacts. Required and echoed; it does not change the arithmetic, but a yield pressure is read only with how it was measured.
- `points` (required): The compaction record: at least three points and at most 1000, in any order.
- `region` (required): The linear region you choose; points outside it are not used. Required: no region is chosen for you.
- `geometry`: in\_die\_geometry only: the compact's mass, the true density and the punch size. Optional.

No request is recorded for this tool.

**Limits**

- Research arithmetic for formulation and stability on values you supply, including every coefficient and constant; not a compounding, dosing, clinical, release, expiry-dating or regulatory authority.
- Formulation arithmetic on values you supply, including every dissociation number, osmotic coefficient, sodium chloride equivalent and freezing-point depression.
- A calculated osmolarity is not a measured osmolality, and a calculated isotonic amount is not a tonicity test.
- Research and education software: not for diagnosis or treatment decisions, and not a compounding or release authority.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

**It will not answer when**

- a point inside the region has a relative density of one or more, given or computed from the geometry, so ln(1/(1 − D)) is undefined; decided exactly on the stated values (on the punch-diameter route against π by a bracket refined until it decides, never a tie).
- a point inside the region has a relative density, given or computed from the geometry, that is below one when decided exactly on the stated values but is one or more as a double, so ln(1/(1 − D)) cannot be formed in double precision; or one whose double is below 2⁻⁹⁰⁰ (about 10⁻²⁷¹), below which the rounding bound used to show the sign of the slope does not hold.
- a result of the fit is not finite, or is not zero and below 2⁻¹⁰²², the smallest normal double (about 10⁻³⁰⁸): SE(K), SE(A), the residual standard error, a residual or fitted value, formed by weighted-line on the pressures and transformed densities scaled by exact powers of two and then unscaled; K and A, formed from the exact group weights as in the line equation's numerical form; SE(K) and R² formed from the exact forms; or Py = 1/K.
- the region's lowest pressure is not below its highest pressure (the region is empty or a single pressure).

### Every input, with its units

5 inputs

- `given` (required): relative\_density: each point gives its relative density D. in\_die\_geometry: each point gives the compact thickness in the die, and \`geometry\` the mass, the true density and the punch size, so D = m/(true density × punch area × thickness); with measurement out\_of\_die, compute D from the compact's own dimensions and choose relative\_density. Required, never inferred.
- `measurement` (required): in\_die: measured in the die under load; out\_of\_die: measured on ejected compacts. Required and echoed; it does not change the arithmetic, but a yield pressure is read only with how it was measured.
- `points` (required): The compaction record: at least three points and at most 1000, in any order.
- `region` (required): The linear region you choose; points outside it are not used. Required: no region is chosen for you.
- `geometry`: in\_die\_geometry only: the compact's mass, the true density and the punch size. Optional.

### Every refusal, with its code

6 refusals

| Code | When |
| --- | --- |
| `RELATIVE_DENSITY_NOT_BELOW_ONE` | a point inside the region has a relative density of one or more, given or computed from the geometry, so ln(1/(1 − D)) is undefined; decided exactly on the stated values (on the punch-diameter route against π by a bracket refined until it decides, never a tie). |
| `RELATIVE_DENSITY_NOT_RESOLVED` | a point inside the region has a relative density, given or computed from the geometry, that is below one when decided exactly on the stated values but is one or more as a double, so ln(1/(1 − D)) cannot be formed in double precision; or one whose double is below 2⁻⁹⁰⁰ (about 10⁻²⁷¹), below which the rounding bound used to show the sign of the slope does not hold. |
| `FIT_OUTSIDE_DOUBLE_RANGE` | a result of the fit is not finite, or is not zero and below 2⁻¹⁰²², the smallest normal double (about 10⁻³⁰⁸): SE(K), SE(A), the residual standard error, a residual or fitted value, formed by weighted-line on the pressures and transformed densities scaled by exact powers of two and then unscaled; K and A, formed from the exact group weights as in the line equation's numerical form; SE(K) and R² formed from the exact forms; or Py = 1/K. |
| `REGION_REVERSED` | the region's lowest pressure is not below its highest pressure (the region is empty or a single pressure). |
| `NEGATIVE` | region.highestPressure outside at least 0 MPa. |
| `NOT_POSITIVE` | geometry.punchArea outside above 0 cm^2. |

## The calculation

The method's equations, constants and worked example.

### [Heckel slope, intercept and mean yield pressure from relative density against compaction pressure](https://www.drybench.com/methods/m/form-heckel-fit/1.1.1)

`form-heckel-fit@1.1.1`

**Equation 1**

```text
ln(1/(1 − D)) = K·P + A, the left side formed as −log1p(−D)
```

| Symbol | Meaning |
| --- | --- |
| `D` | relative density of the compact |
| `P` | compaction pressure, MPa |
| `K` | Heckel slope, 1/MPa |
| `A` | Heckel intercept |

Source 1.

**Equation 2**

```text
K = Sxy/Sxx and A = ȳ − K·P̄ over the points in the region, yᵢ = ln(1/(1 − Dᵢ)): ordinary least squares, weights 1, each formed as a linear form in the transformed densities with exact coefficients from the exact pressures (numerical form)
```

| Symbol | Meaning |
| --- | --- |
| `Pᵢ` | pressure of point i in the region, MPa |
| `yᵢ` | ln(1/(1 − Dᵢ)) |
| `P̄` | mean of the Pᵢ, MPa |
| `ȳ` | mean of the yᵢ |
| `Sxx` | Σ(Pᵢ − P̄)², MPa^2 |
| `Sxy` | Σ(Pᵢ − P̄)(yᵢ − ȳ), MPa |
| `K` | Heckel slope, returned as heckelSlope, 1/MPa |
| `A` | Heckel intercept, returned as intercept |

Source 3.

**Equation 3**

```text
eᵢ = (yᵢ − ȳ) − K·(Pᵢ − P̄)
s = √(Σeᵢ²/(n − 2))
SE(K) = s/√Sxx
R² = Sxy²/(Sxx·Syy), Syy = Σ(yᵢ − ȳ)², equal to 1 − Σeᵢ²/Syy and non-negative by construction
n ≥ 3 points in the region (weighted-line's TOO_FEW_POINTS below three)
```

| Symbol | Meaning |
| --- | --- |
| `eᵢ` | residual of point i in the region |
| `yᵢ` | ln(1/(1 − Dᵢ)) |
| `Pᵢ` | pressure of point i in the region, MPa |
| `ȳ` | mean of the yᵢ |
| `n` | number of points in the region, returned as pointsUsed |
| `s` | residual standard error on n − 2 degrees of freedom |
| `Sxx` | Σ(Pᵢ − P̄)², MPa^2 |
| `SE(K)` | standard error of the Heckel slope, returned as slopeStandardError, 1/MPa |
| `R²` | coefficient of determination about the mean, returned as rSquared (withheld when every yᵢ is the same) |
| `P̄` | mean of the Pᵢ, MPa |
| `Sxy` | Σ(Pᵢ − P̄)(yᵢ − ȳ), MPa |
| `Syy` | Σ(yᵢ − ȳ)² |
| `K` | Heckel slope, 1/MPa |
| `A` | Heckel intercept |

**Equation 4**

```text
Py = 1/K, for K above zero
```

| Symbol | Meaning |
| --- | --- |
| `Py` | apparent mean yield pressure, returned as yieldPressure, MPa |
| `K` | Heckel slope, 1/MPa |

Source 1.

**Equation 5**

```text
D = m/(ρ_true·A_punch·h), with A_punch = π·d²/4 for a flat round punch
```

| Symbol | Meaning |
| --- | --- |
| `D` | relative density of the compact in die |
| `m` | mass of the compact, g |
| `ρ_true` | true density of the powder, g/cm^3 |
| `A_punch` | punch face area, cm^2 |
| `h` | compact thickness at the pressure, cm |
| `d` | punch diameter, cm |

Source 3.

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

**Worked example**

Worked example: one case of form-heckel-fit\@1.1.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

**Inputs**

- given = relative\_density
- measurement = in\_die
- points\[0\].pressure = 50 MPa
- points\[0\].relativeDensity = 0.5
- points\[1\].pressure = 100 MPa
- points\[1\].relativeDensity = 0.75
- points\[2\].pressure = 150 MPa
- points\[2\].relativeDensity = 0.875
- region.lowestPressure = 50 MPa
- region.highestPressure = 150 MPa

**Steps**

1. y1 = 0.69314718, from points\[0\].relativeDensity; by equation 1.
2. y2 = 1.3862944, from points\[1\].relativeDensity; by equation 1.
3. y3 = 2.0794415, from points\[2\].relativeDensity; by equation 1.
4. meanP = 100 MPa, from points\[0\].pressure, points\[1\].pressure, points\[2\].pressure; by equation 2.
5. meanY = 1.3862944, from y1, y2, y3; by equation 2.
6. Sxx = 5000 MPa², from points\[0\].pressure, points\[1\].pressure, points\[2\].pressure, meanP; by equation 2.
7. Sxy = 69.314718 MPa, from points\[0\].pressure, points\[1\].pressure, points\[2\].pressure, y1, y2, y3, meanP, meanY; by equation 2.
8. K = 0.013862944 1/MPa, from Sxy, Sxx; by equation 2; gives heckelSlope.
9. A = 0, from meanY, K, meanP; by equation 2; gives intercept.
10. Py = 72.134752 MPa, from K; by equation 4; gives yieldPressure.

The working, as the case writes it:

```text
K = Sxy/Sxx = (100 ln2)/5000 = ln2/50 = 0.0138629436 1/MPa
A = 2 ln2 - 100 K = 0
Py = 1/K = 50/ln2 = 72.1347520 MPa (worked by hand by Drybench on 11 November 2026
not an independent check)
residuals 0, so R² = 1 and SE(K) = 0 (worked by hand by the raising builder, 14 November 2026)
```

**Answer**

- heckelSlope = 0.013862944 1/MPa
- intercept = 0
- yieldPressure = 72.134752 MPa

Where these values came from: our own exact-arithmetic script and a hand-worked case; the second implementation's run(arguments).

At build the tool returned this answer within the tolerance the file states: Slope, intercept, yield pressure, SE(K) and R² relative 1e-10, the print threshold (the tool prints a fitted number only where its certified rounding bound is at most one part in 10¹⁰ of its value, and withholds it as FIELD\_NOT\_RESOLVED\_TO\_PRECISION otherwise; the CSO's memo on the print threshold, 11 November 2026), so no printed field is compared wider; exact zeros (the hand case's intercept, the constant-transform slope and SE(K), the exact-zero-slope cases' slope and R²) exact; counts, notes, withheld rules, statuses, codes and units exact.

Who worked this case: not recorded.

## Sources

2. Rojas J, Hernandez S, Effect of the compaction platform on the densification parameters of tableting excipients with different deformation mechanisms, Chemical and Pharmaceutical Bulletin 62(3):281–287 (2014) Used for: Heckel slope, intercept and mean yield pressure from relative density against compaction pressure. At: equation (2) −ln(ε) = kP + A and (8) ε = 1 − ρapp/ρtrue (images E02.png SHA-256 c70cdb9f…, E08.png SHA-256 e7c67ef2…): with D = ρapp/ρtrue, ln(1/(1 − D)) = K·P + A, the reading of Hooper 2016's unbracketed (1) ln(1/1-D)=K•P+A that this settles, section Introduction (Equation 2); Experimental, Compact Porosity (Equation 8); equation (2), and the sentence after it: the inverse of the slope represents the mean yield pressure, so Py = 1/K, section Introduction. **Read in full, 24 November 2026**
3. Hooper D, Clarke FC, Mitchell JC, Snowden MJ, A modern approach to the Heckel equation: the effect of compaction pressure on the yield pressure of ibuprofen and its sodium salt, J Nanomed Nanotechnol 7(3):381 (2016) Used for: Heckel slope, intercept and mean yield pressure from relative density against compaction pressure. At: p. 4 of 6, section Linear regression fitting (the linear region chosen by the analyst); p. 3 of 6, section Results, In Die Heckel calculation: D from the true density and the compact thickness, in words; the formula derived here. **Read in full, 11 November 2026**

**Cited, not read**

1. Heckel RW, Density-pressure relationships in powder compaction, Transactions of the Metallurgical Society of AIME 221:671–675 (1961) Used for: Heckel slope, intercept and mean yield pressure from relative density against compaction pressure. At: p. 671–675. sold by OneMine; no open copy found on 11 November 2026 or on 24 November 2026 (the companion paper, 221:1001, is unread too) **Not read; source 2 read in its place**

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Cross-checked here; source not read.

**Checked against:** Our own exact-arithmetic script and a hand-worked case; an outside program, SciPy scipy.stats.linregress with NumPy log1p, scipy 1.18.1, numpy 2.5.4.

**Cases:** No case set is linked to this version.

**Not checked:** Heckel 1961 (unread; the brief requires it before verified; the equation rests on Rojas and Hernandez 2014, with Vreeman and Sun 2021 agreeing); any relation of K to a yield strength; a published dataset with tabulated pressures and densities (none found); a program that fits the Heckel equation itself (none found; SciPy checks the transform and the line); the choice of the linear region (the caller's); true-density sensitivity (call twice); a standard error or interval for Py; punch shapes other than flat faces; correction of in-die thickness for punch and machine deformation.

No independent scientist has yet reviewed this.

### Changes to its methods

0 changes

No change is logged for these method versions.
