Skip to content
Octo × Portfolio and income tax PT Request an assessment

Octo for brokerage notes, average cost, DARF and the tax return

The tax on your trades is yours. The math can come ready, with every number tied to its source note.

You download the brokerage notes and the statements from B3's Investor Area; Octo reads the files from disk, builds the average cost with fees, splits and bonus shares, separates regular trades, day trades and FIIs, applies the R$ 20 thousand exemption, deducts the withholding tax and shows the month's DARF (tax payment slip) with the calculation record. You are the one who checks, pays and files, with your accountant.

The Octo panel with its eight arms next to the fictional path from a brokerage note to the average cost and the DARF calculation Three boxes linked by flow arrows. The fictional brokerage note has two purchases of AAAA3, 1,000 shares at R$ 20.00 and 500 at R$ 23.00, and a sale of 1,500 at R$ 24.00, with fees of R$ 10, R$ 10 and R$ 12. The average cost, with fees, comes to R$ 21.01. The month's calculation shows sales of R$ 36,000, above the R$ 20 thousand exemption, a profit of R$ 4,468.00 and 15% tax, R$ 670.20, due on the last business day of the following month. A dashed box notes that checking and paying belong to the taxpayer or the accountant. On the left, the Octo panel shows the Octo mark and the eight arms in a list, each with a green status dot: Discovery, Data, Security, Architecture, Development, Review, Release and Documentation. All data are fictional. memoria_de_calculo_outubro.csv · fictional data brokerage note · fictional B AAAA3 1,000 × 20.00 B AAAA3 500 × 23.00 S AAAA3 1,500 × 24.00 fees: R$ 10, R$ 10 and R$ 12 read from the PDF you downloaded average cost · AAAA3 R$ 21.01 (20,010 + 11,510) ÷ 1,500 shares fees go into the cost split: zero cost month's calculation · DARF · fictional sales in the month: R$ 36,000 (above R$ 20 thousand) profit: R$ 35,988 − R$ 31,520 = R$ 4,468.00 tax: 15% = R$ 670.20 due on the last business day of the next month checking and paying: the taxpayer or the accountant; Octo does not issue DARFs Octo · 8 arms Discovery Data Security Architecture Development Review Release Documentation
Illustration: the Octo panel with its eight arms next to the brokerage note, the average cost and the DARF calculation; fictional data
Stock exemptionR$ 20 thousandsales in the month, spot market; Law 11,033/2004, art. 3, I
DARF6015by the last business day of the next month; Federal Revenue, IRPF 2026 Q&A, 730
JCP since 202617.5%withholding tax; Law 9,249/1995, art. 9, § 2 (LC 224/2025)
Sources10listed at the end of the page
01

What Octo does with the portfolio and income tax.

Six deliverables, all from files the person downloaded. None asks for a broker password, none issues a DARF and none picks assets.

Reading notes

SINACOR notes in PDF read from disk, with each note's total checked against the "Valor das operações" (trade value) and the sha256 of every file.

Deliverable: operacoes.csv and manifest

Average cost in steps

Weighted average cost with brokerage and fees, across all brokers, with splits, reverse splits and bonus shares in the right place.

Deliverable: ladder per asset

Payouts kept apart

Dividends, JCP (interest on equity) with 17.5% withholding and FII distributions, with a warning when the 10% withholding on dividends above R$ 50 thousand in the month may apply.

Deliverable: payouts by type and month

Month's calculation

Regular, day trade and FII in separate boxes; exemption by sales, losses from previous months, withholding deducted and the DARF 6015 due date.

Deliverable: calculation record

Distance to your target

The target is yours. The script measures the distance and shows the path with new contributions only and the path with sales, with the effect on the exemption limit.

Deliverable: current vs target table

Draft of the tax return

Assets and rights at cost, exempt income, income taxed at source and the month-by-month statement, to check against the income report and with the accountant.

Deliverable: sheets with the source of each value
02

What Octo delivers, in charts.

Examples of the material that comes out of public data, with fictional data. Illustration, not recommendation: a person reads and decides.

Notes and average cost

38 PDF notes, two brokers, one split: the average cost that matches B3

Fictional chart of the average cost of AAAA3 in steps, with bars for the quantity held. On 10 Mar, purchase of 100 shares: average cost R$ 20.05. On 12 May, purchase of 200 more: 300 shares at R$ 22.04. On 15 Jun, a 1-for-2 split: 600 shares at R$ 11.02, with the total cost of R$ 6,612.00 unchanged. On 20 Aug, purchase of 150: 750 shares at R$ 11.32. On 5 Oct, sale of 400: 350 shares remain and the average cost stays at R$ 11.32. Below, the rules: note fees go into the cost; a sale does not change the average cost; a split has zero cost. AAAA3 (fictional): average cost in steps and quantity 0510 1520R$ 25 0400800 100300600 750350 20.0522.0411.02 11.3211.32 10/0312/0515/06 20/0805/10 buybuysplit 1:2 buysell 400 AC = (price x qty + note fees) / qty, adding up all brokers a sale does not change the AC · split: zero cost, same total cost (6,612.00)
Illustration: average cost in steps of a fictional stock, with fees and a split; fictional data.
Calculation and DARF

October: two sales that go over R$ 20 thousand, a day trade and an FII at a loss

Fictional timeline of October and November 2026. In October: sale of AAAA3 for R$ 5,600 on the 5th, sale of BBBB4 for R$ 18,000 on the 14th, a BBBB4 day trade on the 21st and a sale of FIIX11 at a loss on the 28th. Below, the sum of stock sales rises to R$ 5,600 and then to R$ 23,600, crossing the R$ 20,000 exemption line. End of October: calculation. In November: the All Souls' Day holiday on the 2nd and DARF code 6015 due on 30 Nov, the last business day. Final box: 15% on R$ 3,223.93 of regular base gives R$ 483.59, plus 20% of R$ 177.00 of day trade, R$ 35.40, minus R$ 1.43 of 0.005% withholding added up in the month, including the FII sale, and R$ 1.77 of day-trade withholding, a total of R$ 515.79; the FII loss of R$ 102.70 is carried forward. October 2026: trades November 2026: pay 05 saleAAAA35,600 14 saleBBBB418,000 21 daytrade+177.00 28 FIIX11−102.70 calc. 02/11 holiday 30/11 (Mon) last business day DARF 6015 sale on 29/10 settles 03/11: limit counts by trade date, deadline by settlement (Q&A 745) sum of stock sales in the month limit R$ 20,000 23,600 5,600 regular: (4,023.93 − 800.00 Sep loss) x 15% = 483.59 day trade: 177.00 x 20% = 35.40 · WHT 1% = −1.77 · WHT 0.005% in month = −1.43 DARF 6015 = R$ 515.79 · FII loss of 102.70 carried to the next FII gain
Illustration: timeline of the month, from the sales to the calculation and the DARF due on the last business day of the next month; fictional data.
Rebalancing toward your target

The portfolio drifted from the target you set: the path with new contributions and the path with sales

Two fictional donut charts. On the left, the current R$ 30,000 portfolio: AAAA3 16.9%, BBBB4 29.7%, FIIX11 16.2% and fixed income 37.2%. On the right, the target set by the user: 25%, 25%, 20% and 30%. Below, the two calculations: with a R$ 3,000 contribution only, R$ 1,943.88 would go to AAAA3 and R$ 1,056.12 to FIIX11, with no sale and no tax; with sales, reduce BBBB4 by R$ 650 and fixed income by R$ 1,250, and the stock sale counts toward the month's R$ 20 thousand limit. current (R$ 30,000) user's target 4 partsoff target setby the person 16.929.716.237.2 25252030 AAAA3 BBBB4 FIIX11 fixed income 1) contribution of R$ 3,000 only: no sale, no tax AAAA3 R$ 1,943.88 · FIIX11 R$ 1,056.12 · target not yet reached 2) with sales: BBBB4 −650.00 · fixed income −1,250.00 the stock sale counts toward the month's R$ 20 thousand limit: run the calculation first
Illustration: current portfolio mix compared with the target set by the user; fictional data.
03

Eight arms, one calculation record.

The same Octo cycle, applied to the portfolio and the tax. Each arm has a narrow role; the DARF and the tax return belong to the taxpayer.

  1. Discovery

    Finds the files

    Notes by broker and year, B3 statements, income reports; layout and date of each one.

  2. Data

    Models trades and events

    Buy, sell, day trade, split, bonus shares, payouts; trade date and settlement date.

  3. Security

    Keeps what is personal

    No broker or B3 password in any script; notes with a CPF stay on the machine; sha256 of every PDF.

  4. Architecture

    Separates reading, calculation and report

    Note reader, average cost and calculation kept independent, so one can be redone without touching the others.

  5. Development

    Writes the scripts

    With the rule and the Federal Revenue question beside each calculation line.

  6. Review

    Checks against custody

    Computed quantity = B3 position; one month done by hand = the script's month.

  7. Release

    Delivers the record

    Spreadsheet or PDF with the source of every number, for the person and the accountant.

  8. Documentation

    Records each month's rule

    JCP at 15% up to 2025 and 17.5% since 2026; if the law changes, the old calculation is still explained.

Octo does not issue or pay DARFs, does not file tax returns, does not set the portfolio target and does not say what to buy or sell. It calculates with the person's files and shows every step.

04

Each question, its document and its rule.

Where each number comes from and which rule governs it, checked on 12 Nov 2026.

QuestionDocument or ruleNote
How much did I pay per share?Brokerage note (SINACOR)Price, quantity and fees; the person downloads it from the broker
How many shares do I have?Position statement from B3's Investor AreaConsolidates the brokers; does not show the average cost
How do I calculate the cost?IRPF 2026 Q&A, 708, 719 and 720Weighted average with fees, adding up all brokers
Split or bonus shares?Q&A 721 and 722; notice to shareholdersSplit at zero cost; bonus shares at the capitalised value
Am I exempt this month?Law 11,033/2004, art. 3, IStock sales up to R$ 20,000; does not apply to day trades or FIIs
Which rate?Law 11,033/2004, art. 2; Law 8,668/1993, art. 1815% regular, 20% day trade, 20% FII
What did the broker withhold?Law 11,033, art. 2, §§ 1, 4 and 5; Law 9,959/2000, art. 80.005% of the sale (waived if the month's total is up to R$ 1); 1% of the day trade
When and how do I pay?Q&A 730 and 745DARF 6015 by the last business day of the next month
And JCP and dividends?Law 9,249/1995, art. 9; Law 9,250/1995, art. 6-AJCP 17.5%; dividends above R$ 50 thousand a month from the same company, 10%
And abroad?Law 14,754/2023, arts. 2 and 315% a year, in the tax return, including exchange rate changes
05

From the monthly spreadsheet to year-round control.

Three steps. Each only makes sense after the previous one has shown results for whoever uses it.

A proposal, not a promise

1 Today

Calculation with a record

The person's trades in a CSV, average cost in steps and the month's math with each rule cited.

  • Average cost with fees
  • Four separate boxes
  • DARF due date
Gain: no more mental math
2 Next

Notes read from disk

The note reader per broker, checked against one note by hand, and the final quantity matched to the B3 position.

  • sha256 manifest
  • Manual review list
  • Events with sources
Gain: every number with its source
3 Later

The whole year for the accountant

Month-by-month statement, accumulated losses, payouts and the draft sheets, delivered in a package the accountant checks.

  • Draft sheets
  • Losses tracked
  • The person's target and contributions
Gain: a tax return without digging in April
06

Confirmed by source.

Every point below has a source published by the vendor, by the project or by the responsible agency. The sources are in the next section.

6

points with a published source, each with its reference alongside.

Octo reads, calculates and shows the calculation record; it does not issue or pay DARFs, does not file tax returns and does not pick assets. The tax and the return belong to the taxpayer, and the accountant checks them. The portfolio target belongs to the person or to the CVM-registered professional serving them, after a suitability assessment. Notes, statements and income reports contain a CPF and assets: they follow the LGPD and do not leave the machine of whoever is accountable for them unless that person decides so. Octo does not ask for broker or B3 passwords and does not scrape pages: the person exports the file.

ConfirmedExemption and rates
Stock sales up to R$ 20 thousand in the month are exempt; 15% regular; 20% day trade; the 0.005% withholding is waived when the month's total is up to R$ 1.Source: Law 11,033/2004, art. 2, §§ 1, 4 and 5, and art. 3, Planalto (12 Nov 2026)
ConfirmedDARF
Code 6015, by the last business day of the next month; for sales at the end of the month the deadline counts from settlement.Source: Federal Revenue, IRPF 2026 Q&A, questions 730 and 745 (12 Nov 2026)
ConfirmedAverage cost and events
Weighted average with fees, all brokers added together; splits at zero cost; bonus shares at the capitalised value.Source: IRPF 2026 Q&A, questions 708 and 719 to 722 (12 Nov 2026)
ConfirmedOffsetting losses
Regular against regular, day trade against day trade; losses carry over to later months and years if they appear in the statement.Source: IRPF 2026 Q&A, questions 709 to 711 (12 Nov 2026)
ConfirmedPayouts since 2026
JCP with 17.5% withholding; dividends above R$ 50 thousand in the month from the same company, with 10% withholding.Source: LC 224/2025 and Law 15,270/2025, Planalto (12 Nov 2026)
ConfirmedAbroad
15% a year in the tax return, separately; gains include exchange rate changes; losses can be offset.Source: Law 14,754/2023, arts. 2, 3 and 9 (12 Nov 2026)
07

What Octo does and what stays with you.

Octo prepares everything, but it does not sign. The document of record stays with whoever is accountable for it.

Drawing of an accountant standing and pointing at a board with the path from the brokerage note to the average cost and the DARF, explaining it to a client sitting at a table noteaverage costDARF
Illustration: the accountant explains the calculation record; the tax and the return belong to the taxpayer

Octo prepares

Collects the public data, calculates, checks and puts the material together: spreadsheets, charts, reproducible notebooks, calculation records and draft reports, with the source and date of every number.

Deliverable: material ready to check

Your team checks

Whoever is accountable for the portfolio, the tax or the report checks what Octo delivered before using it. If something does not add up, it goes back to Octo with the correction.

Step: checked by the person accountable

Who signs and decides

Octo does not recommend investments and does not sign. The decision to invest belongs to the investor; recommendations to third parties, analysis reports and suitability stay with the CVM-registered professional; the tax stays with the taxpayer and the accountant.

Decision: the investor and the CVM-registered professional
08

Sources.

Laws on the Planalto site and Federal Revenue publications, consulted on 12 Nov 2026. B3 pages cited, not read by an automated tool.

Your stock market tax, calculated with the note beside it.

The diagnosis starts with one month of notes you already have. You get the average cost, the calculation with its record, the rules used and the questions only you and your accountant can answer.