Bitcoin’s OP_RETURN limit is a relay rule in each node’s configuration, not part of the consensus rules. Until Bitcoin Core 29 the default -datacarriersize was 83 bytes of script, which is an 80-byte payload plus three bytes of opcodes. Bitcoin Core 30.0, released on October 10, 2025, raised the default to 100,000, which in practice removes the cap because the 100,000 vB standard transaction size limit is reached first. It also allows several OP_RETURN outputs in one transaction.
This page was checked on November 29, 2026 against the Bitcoin Core 32.1 source tag and the release notes of 31.0, 31.1, 31.2, 31.3 and 32.1. None of those notes changes the data carrier default again, so the 30.0 values still apply.
What the number counts
OP_RETURN marks an output as provably unspendable, so a transaction can carry data without adding a coin to the UTXO set. The check lives in IsStandardTx in policy.cpp: for every output of type NULL_DATA it subtracts txout.scriptPubKey.size() from a running budget and rejects the transaction with the reason datacarrier once the budget is exceeded.
The unit is therefore script bytes, not payload bytes. An 80-byte payload needs three extra bytes:
OP_RETURN (1) + OP_PUSHDATA1 (1) + length byte (1) + 80 data bytes = 83 script bytes
That is where 83 comes from. The comment in Bitcoin Knots’ 29.x branch still describes it the same way: “80 bytes of data, +1 for OP_RETURN, +2 for the pushdata opcodes”.
What changed, version by version
| Bitcoin Core version | OP_RETURN relay rule | Source |
|---|---|---|
| 0.11.0 | Default maximum OP_RETURN size set to 80 bytes (pull request 5286) | 0.11.0 release notes |
| 0.12.0 | Any sequence of data pushes allowed, not only a single push | 0.12.0 release notes |
| 30.0 (October 10, 2025) | -datacarriersize default 100,000; several OP_RETURN outputs allowed, with one shared budget | 30.0 release notes |
| 31.0 to 32.1 | No change to the data carrier default in the release notes | 31.0, 32.1 |
The 30.0 notes put it under “Policy”: the option “is increased to 100,000 by default, which effectively uncaps the limit (as the maximum transaction size limit will be hit first)” and “can be overridden with -datacarriersize=83 to revert to the limit enforced in previous versions” (pull request 32406). The limit now applies to the aggregate size of the scriptPubKeys of all data carrier outputs in a transaction.
In the source, the default is no longer a fixed number. policy.h defines MAX_OP_RETURN_RELAY = MAX_STANDARD_TX_WEIGHT / WITNESS_SCALE_FACTOR, which is 400,000 / 4 = 100,000.
What a larger OP_RETURN costs
OP_RETURN data sits in the output script, so it is not witness data and gets no discount: one byte costs one virtual byte. The table gives the size of one OP_RETURN output (8 bytes for the amount, the script length prefix, and the script) and what that output adds to a transaction’s fee. The fee columns are calculations at three example rates, not predictions.
| Payload | Script bytes | Output size (vB) | At 0.1 sat/vB | At 1 sat/vB | At 5 sat/vB |
|---|---|---|---|---|---|
| 80 bytes | 83 | 92 | 9 sats | 92 sats | 460 sats |
| 1,000 bytes | 1,004 | 1,015 | 102 sats | 1,015 sats | 5,075 sats |
| 10,000 bytes | 10,004 | 10,015 | 1,002 sats | 10,015 sats | 50,075 sats |
| 65,535 bytes | 65,539 | 65,552 | 6,555 sats | 65,552 sats | 327,760 sats |
| 99,871 bytes | 99,877 | 99,890 | 9,989 sats | 99,890 sats | 499,450 sats |
The script grows by one opcode and a length field as the push gets longer: one byte for pushes up to 75 bytes, two up to 255, three up to 65,535 and five above that. The output’s own length prefix grows from one byte to three (script of 253 bytes or more) and then five (script of 65,536 bytes or more).
Worked example: the largest standard transaction with one data output
A transaction with one P2WPKH input (68 vB), one P2WPKH change output (31 vB) and 10.5 vB of overhead takes 109.5 vB without the data output. The data output adds 8 bytes of amount, 5 bytes of length prefix and 6 bytes of opcodes around the payload:
10.5 + 68 + 31 + 8 + 5 + 6 + payload ≤ 100,000 vB
payload ≤ 99,871 bytes
At 99,871 bytes the transaction is 99,999.5 vB, just under the standard size limit, and its script of 99,877 bytes is just under the 100,000 data carrier budget. At 1 sat/vB that transaction would pay about 100,000 sats in fees. The transaction size limit, not -datacarriersize, is the real ceiling, which is why the release notes call the new default an uncapped limit. The dust limit does not apply to these outputs: an unspendable OP_RETURN output is never dust, so it can carry an amount of zero.
What to do, depending on who you are
You only send and receive bitcoin. Nothing changes. A wallet does not need to know the limit unless it builds OP_RETURN outputs itself. If a transaction with an oversized OP_RETURN fails to reach your node’s mempool, Bitcoin Core 32.1 now reports the affected funds in a nonmempool field of getbalances, so they no longer look as if they vanished.
You run a node and want the old behavior. Add datacarriersize=83 to bitcoin.conf, or datacarrier=0 to stop relaying data carrier transactions altogether. Both settings only change what your node relays and mines. They do not make it reject a block that contains a larger OP_RETURN, because block validity is decided by consensus rules, and the release notes file this change under policy. getmempoolinfo returns the active value in the maxdatacarriersize field, which is how you check what a node is configured to do.
You build software that publishes data. Do not assume a transaction with more than 83 script bytes will relay everywhere. Relay depends on each node’s setting, and operators of nodes on older versions or with an override still apply 83. Your fee estimate is also the main limit: the table above shows the cost grows linearly with size.





