How to Choose a Dairy Cow Sorting Gate: Layout, RFID & Cow Flow

📅 August 30, 2026 👤 By Cathy

A cow sorting gate is most useful when it removes a daily interruption from the dairy's routine. Instead of sending staff into a large group to find cows for insemination, hoof trimming or treatment, the farm identifies those animals as they leave the milking parlor and directs them into the appropriate holding area.

Choose the sorting system around the cows that must pass through it, the routes they need and the work that happens after they are separated. A two-way gate can serve a large herd with one selected-cow route. A three-way gate can serve a smaller herd with several independent handling tasks. The number of exits, the hourly cow flow and the capacity of the receiving pens are three separate design decisions.

Dairy cow passing through an automated sorting gate near a milking parlor

Start With the Daily Sorting Jobs

List the tasks the dairy plans to carry out after milking. Then identify where each selected cow will wait, who will handle her and how she will return to the correct group.

Sorting task Typical destination Question for the layout
Routine return after milking Original housing or production group Can normal cow traffic continue without stopping?
Insemination or pregnancy checks Breeding or examination pen How many cows need handling in the busiest session?
Veterinary examination or treatment Suitable treatment or special-needs area Can staff safely identify and access each animal?
Hoof trimming Holding area leading to the trimming chute Is there enough space for cows waiting for the trimmer?
Pen transfer or group change Designated return lane or transfer pen Is the route connected to the intended destination?

The destinations do not always require separate automated exits. A farm can direct selected cows into a common handling pen and use manual internal gates to separate appointments later. This approach reduces automated gate complexity but adds work after sorting.

A separation pen should suit the planned task. Cows requiring special care, routine breeding checks and large hoof-trimming groups may need different handling arrangements. The University of Wisconsin–Madison dairy guidance on grouping discusses when separation pens help and why very large handling groups may be better managed elsewhere in the facility.

Two-Way vs. Three-Way Sorting Gates

A two-way sorting gate has one entry and two selectable exits. A three-way model has one entry and three exits, typically with a straight return route and two diverging routes. Four-way or larger layouts can be developed through customized equipment and lane arrangements where the site justifies them.

Decision factor Two-way gate Three-way gate
Basic route plan Normal return / selected cows Normal return / selected group A / selected group B
Suitable workflow One main collection or treatment stream Two handling streams that need separate destinations
Downstream pens One selected-cow pen may be enough Two separated receiving routes or pens are normally needed
Equipment and installation Simpler routing and fewer moving elements More exit geometry, controls and lane connections
Best reason to choose it One sorting decision covers daily needs Separate tasks would otherwise require repeated manual sorting

For example, a two-way gate may be entirely adequate on a 1,000-cow dairy that collects all cows needing attention in one pen. An 800-cow dairy may prefer a three-way gate if breeding cows must enter a different handling area from cows requiring treatment or hoof care.

The extra exit adds destinations, not automatic throughput. Either gate can create a bottleneck when cows arrive faster than the identification and switching process can handle.

IMAGE TO UPLOAD — 900×643 technical plan view showing a one-entry/two-exit sorting gate beside a one-entry/three-exit sorting gate, with cow movement arrows, return lane and separate holding pens

Calculate Peak Cow Flow Before Selecting the Gate

The key capacity figure is the number of cows reaching the sorting point during the busiest part of milking. Use the parlor's actual exit pattern, including how cow groups leave individual platforms and whether several return lanes converge at the same gate.

Average cows per hour = Cows using the gate during a milking ÷ Hours in that milking.

Consider an 800-cow herd in which every cow passes through one proposed sorting entrance during a two-hour milking:

  • Average flow through the entrance: 800 ÷ 2 = 400 cows/hour.
  • Average interval between cows: 3,600 ÷ 400 = 9 seconds per cow.

Nine seconds is an average arrival interval, not a gate-cycle specification. Groups of cows can arrive closer together, and a cow that stops or turns at the exit can delay those behind her. The gate supplier needs to check the complete sequence: detecting a cow, reading the ID, confirming the lane is clear, switching the gate, allowing passage and preparing for the next cow.

Before placing an order, request performance information under the proposed layout:

  1. Time required for one complete identification-and-routing cycle.
  2. Sustained cow throughput with a realistic mix of normal and selected cows.
  3. Operation when cows arrive close together or one animal follows another.
  4. Performance when repeated cows are diverted alternately left and right.
  5. Recovery after a hesitation, unread tag or interrupted passage.

When several parlor exit streams converge, the approach lanes and merging point may set the practical throughput. A parallel sorting arrangement or a different junction layout can be more useful than adding a third exit to one gate.

Design the Holding Pens and Return Routes With the Gate

The selected cows need somewhere to go after the moving gate panel. Pen access, capacity and the staff working area often determine whether the system saves labor in practice.

For a proposed three-way layout, one arrangement is:

  • Straight ahead: return to the normal housing group.
  • Left: breeding and scheduled examination pen.
  • Right: treatment or hoof-care collection pen, with appropriate internal separation as needed.

This layout is an option for a dairy with suitable space after the milking parlor. If the breeding area is across the yard, or the trimming chute is already on a different return route, the best arrangement may use two sequential gates or a differently positioned sorting point.

How Much Holding Space Is Needed?

Size each selected-cow pen for the largest number of cows likely to accumulate before staff move or release them, rather than only the total number selected in a day.

Suppose 16 cows are sorted for treatment during one milking period and staff have already moved six to the handling area. The collection pen must accommodate 10 cows still waiting.

For a preliminary short-stay area calculation, the University of Wisconsin–Madison dairy holding-area guidance uses at least 20 ft² (approximately 1.9 m²) per cow. Applied to this example:

10 cows × 1.9 m² = approximately 19 m² of usable cow-holding space.

That is the animal waiting-area allowance, before adding any separate staff access, sorting passages, gates or treatment equipment. Design the actual pen for its occupancy pattern and waiting time. Cows held longer need particular attention to water, shade or ventilation, footing and access to suitable handling facilities.

The receiving lane should allow cows to clear the moving gate before slowing or turning. Position manual gates so workers can separate or release animals without entering a pinch point, and provide an accessible return or transfer route from the pen.

A sorting pen that fills while the parlor is still operating needs an operating response: notify staff, stop further diversion into the full area and direct subsequent animals only through a safe, pre-agreed route or controlled pause. The gate controller and receiving-pen procedure should be planned together.

How RFID, Gate Controls and Herd Software Work Together

A functional automatic sorter follows a short control sequence:

  1. Farm staff or management software creates a sorting task for a cow ID.
  2. An RFID reader identifies the cow approaching the sorting point.
  3. The gate controller checks the active task and the status of its sensors and exits.
  4. The actuator positions the gate for the selected route.
  5. Passage sensors and controller records confirm the event or register an exception.
  6. The result is available for staff review and, where integrated, the herd-management system.

Dairy cow carrying electronic identification near a sorting gate

Check the RFID Protocol and the Animal ID Mapping

Many dairy identification systems use 134.2 kHz low-frequency RFID under ISO 11784/11785, including HDX and FDX-B tags. The ICAR register of conforming RFID devices identifies tested device types. Before selecting a reader, confirm which protocol is used on the farm and whether the reader supports it.

Read performance is established at the installed gate. Antenna size and position, tag orientation, animal speed and nearby steelwork all affect the effective reading zone. Variable-frequency-drive cables and other electrical equipment can also introduce interference. Place and tune the antenna with the gate framework in its final position, then test normal and closely spaced cow passages. DairyNZ's automated drafting guidance emphasizes matching the identification arrangement to cow traffic and the rest of the farm's automated equipment.

Connect Monitoring Alerts to Sorting Tasks

A monitoring device supplies management signals; the identification reader supplies the cow ID at the gate. NexAgri's NexAgri-Guard smart collar and NexAgri-Sense smart ear tag systems can be considered as sources of location, activity, temperature or identification information according to the selected device model. A configured herd-management workflow can then use an activity alert or a staff review to place the corresponding cow on a sorting list.

For example: monitoring alert → cow reviewed by staff or approved software rule → sorting task created → RFID identification at the gate → cow directed to a handling pen. This workflow requires a matching animal ID and supported data interfaces between the monitoring platform, herd software and sorting controller. The device model and the interface scope are specified for each project.

Connecting Existing Herd Management Software

A gate controller can exchange sorting lists, animal IDs and passage records with suitable farm software. The connection may use an available API, a supported data exchange method or a project-specific interface. Compatibility with systems already installed on the farm is checked against their actual integration documents and permissions.

Agree on the data fields before development:

Data item Purpose
Cow ID Match the identified animal to the correct record
Sorting task ID Match the instruction with the route event and follow-up work record
Destination Specify the requested exit or receiving pen
Task validity and priority Prevent outdated or conflicting instructions
Timestamp and gate ID Show when and where passage occurred
Outcome and exception code Confirm sorting, missed identification or fault

The farm's software provider may need to supply interface documentation, access rights, testing credentials and approval for the connection. This work should be defined in the equipment integration scope before installation.

Plan for Missed Reads, Tailgating and Gate Faults

A sorter needs a clear response when normal operation is interrupted. Decide how staff will locate an unsorted cow, how the equipment will protect animals around moving gates and how the software records what happened.

Situation Practical control or response to specify
Tag not read Register an unidentified passage; apply the agreed safe route or controlled stop; flag the cow for follow-up
Two cows arrive together Use entry/presence sensing and passage logic to avoid assigning one cow's route to the next
Network communication is lost Follow a defined local/offline mode or controlled stop, with clear status to staff
Destination pen is full Block new diversions to that pen, alert staff and use the site's approved alternative handling procedure
Gate arm is obstructed Stop the affected movement, signal the fault and permit safe manual intervention
Emergency stop is pressed Stop hazardous movement and require an intentional, checked restart
Power or compressed air is lost Move or remain in the engineered safe condition; provide a safe animal-release procedure
One cow has several tasks Apply the farm's task priority and retain unfinished tasks until staff record completion

For an 800-cow operation, urgent attention, scheduled insemination, routine checks and hoof trimming may all appear on the sorting list. The farm defines task priorities and assigns a responsible team to each handling pen.

Close the Sorting and Treatment Records in One Workflow

A useful software sequence is Pending → Routed at Gate → Sorted to Pen → Work in Progress → Completed. The gate controller sends the cow ID, selected route and passage time to the management system. A downstream pen sensor or staff confirmation updates the record to Sorted to Pen. The breeding or veterinary team then records the completed procedure using a handheld device, mobile interface or the farm's existing herd software. Unfinished tasks remain available for the next handling session.

This separates gate-performance reporting from staff work records and makes it easier to find cows that were sorted but not yet handled. Cows requiring urgent attention follow the farm's immediate animal-care procedure, with staff able to act outside the normal post-milking sorting schedule.

Mechanical Layout, Drive System and Optional Equipment

The physical structure must suit the largest animals using the lane, the existing parlor exit and the planned exit geometry. Galvanized steel is a practical option for dairy environments; stainless-steel components may be specified for particular wet or corrosive areas. Rounded contact surfaces, guarded moving parts, adequate anchor points and access for maintenance belong on the equipment drawings.

Galvanized dairy sorting gate framework and cattle handling lanes

Single-File Approach: Width and Straight Length

A short, wide approach allows two cows to reach the reader together, making identity assignment and gate timing more difficult. A properly formed single-file section helps maintain a clear sequence of animals at the RFID antenna and entrance sensors.

For an equipment reference, the Datamars/Tru-Test dairy sort-gate specifications recommend at least 16 ft (about 4.9 m) of single-file approach before their sorting gate, with a further 6.5 ft (about 2 m) of exit alley. A separate UK HSE dairy handling case used a 700 mm clear race width for the cows at that particular farm. These are useful references for reviewing the first layout sketch; the final opening should be drawn around the largest cows, the actual gate model and the selected identification arrangement.

The equipment drawing should show the clear inside width, approach length, antenna and presence-sensor positions, gate travel area, floor slope or surface treatment, and the first turn after each exit. Check cow movement through the proposed approach before fixing posts and services in concrete.

Pneumatic vs. Electric Actuation

Pneumatic actuation uses cylinders and solenoid valves supplied by an air line. Include the specified air pressure and consumption, filter/regulator, condensate management, tubing protection, manual isolation and gate-speed adjustment in the installation scope. For a concrete manufacturer reference, Datamars specifies 4–6 bar at idle for its Dairy Drafter/Sort Gate, with a maximum of 7 bar. An Afimilk installation manual specifies 5 bar for its pneumatic gate adjustment. The chosen model's instructions determine the correct setpoint.

Electric actuation can avoid a dedicated compressed-air connection at a remote gate. Review the actuator's supply voltage, enclosure protection, movement speed, duty cycle, control and emergency-release arrangement. Some systems use low-voltage drives, but the required voltage comes from the selected equipment rather than a standard value for all electric gates.

For either drive, plan guarded moving parts, accessible emergency controls, controlled movement near cattle and a recovery procedure for power loss or obstruction. Wet or freezing climates also affect the choice of components and the protection of pneumatic air lines or electrical enclosures.

Optional weighing. A walk-over weighing platform can be integrated into the passage system, with calibration and software filtering to handle incomplete or unstable readings. The platform and identification event must refer to the same cow.

Optional vision and monitoring. Cameras and smart-monitoring inputs may supplement RFID and passage sensors in a configured system. Their intended functions, accuracy checks, lighting requirements and data interfaces should be described in the project specification.

Commissioning: Test the Whole Sorting Process

The acceptance test should cover the gate, tag reading, software instructions and real cow movement together. Start with an empty-gate controls test, then run a supervised trial with cattle representing the normal herd traffic.

Test What to record
Normal straight-through passage Cow ID, assigned route, observed route and elapsed time
Left/right sorting Cow ID and confirmation of the correct destination
Continuous cow traffic Arrival pattern, total passages, delays and queuing
Alternating destinations Gate switching behavior and route completion
Missed or duplicate RFID reads Recorded exception and staff follow-up method
Tailgating or interrupted passage Sensor response and animal-safe behavior
Network interruption Local operation, alarm status and recovery
Emergency stop or actuator fault Safe stop, release procedure and restart checks
Weighing, where supplied Calibration result and linkage between weight and cow ID
Software integration Sorting-list import, event feedback and unresolved-task display

Report the identification, routing and downstream work separately:

  • Identification rate: Passages with a valid, matched cow ID divided by observed passages.
  • Verified diversion rate: Active sorting requests that resulted in the cow reaching the intended receiving route divided by sorting requests presented at the gate.
  • Work completion rate: Recorded breeding, treatment or hoof-care jobs completed divided by the relevant assigned jobs during the reporting period.

The management screen should also flag cows assigned a sorting task but not observed at the gate during the expected milking. Their tasks remain available for follow-up. A separate event log shows the gate's physical performance, while the work register shows what was actually completed by staff.

The project team should agree on acceptance targets and testing conditions before commissioning. Performance should be established at the cow flow the farm actually needs, including the busier intervals, not only during a quiet demonstration.

What Should Buyers Send With a Sorting Gate Inquiry?

A useful inquiry starts with the existing site layout and a clear description of the planned sorting work. Include:

  1. Milking system type, number of cows using the exit and the actual or planned milking duration.
  2. Peak cow arrival pattern at the sorting location and whether multiple lanes merge.
  3. Desired destinations: normal return, breeding, treatment, hoof care or group transfer.
  4. Existing exit dimensions, floor conditions, available pen space and photographs of the cow route.
  5. Cow breed and the body size of the largest animals expected to pass.
  6. Current RFID tags, herd management software and available interface documentation.
  7. Power, compressed-air and network services at the installation point.
  8. Optional weighing, camera or smart-monitoring integration requirements.

The output of equipment selection should include a layout showing the entrance and exits, mechanical dimensions, gate and reader positions, an equipment list, control functions, utility requirements, data interfaces and a commissioning test plan.

How NexAgri Supports Cow Sorting Gate Projects

NexAgri Solutions can supply two-way and three-way dairy cow sorting gates, customized lane structures and fencing, RFID identification, controllers and software integration. Four-way or larger layouts can be developed as customized projects. Pneumatic or electric actuation, walk-over weighing, cameras and monitoring-data inputs can be included in an agreed system configuration.

NexAgri's NexAgri-Guard smart collar and NexAgri-Sense smart ear tag product ranges can also support herd-monitoring workflows. Where the specified monitoring device, farm management platform and gate controller have compatible interfaces, alert data can be linked to an approved sorting rule or staff-created task. We define the required fields, responsibility for interface development and acceptance tests before configuring this connection.

For a new milking facility or retrofit, NexAgri can prepare gate dimensions, mechanical layouts, electric/control drawings, interface definitions, equipment lists and a commissioning test schedule based on the farm's cow-flow requirements. This gives the farm's local installation and software teams clear information for implementation.

To prepare a proposal, contact NexAgri with the parlor-exit drawing, herd size, destinations and existing identification/software details.

Frequently Asked Questions

Is a three-way sorting gate better for an 800-cow dairy?

It can be a useful layout when the farm needs separate breeding and treatment routes in addition to the normal return lane. Confirm the hourly cow flow, location of the handling pens and available exit space. A two-way gate may be simpler when all selected cows can go to one collection pen.

Can a sorting gate use the farm's existing RFID ear tags?

Start by checking the tags' identification protocol, the reader's supported formats and how animal IDs are stored in the farm software. The identification and routing sequence should then be tested with the actual tags and animals before commissioning.

Can NexAgri-Guard or NexAgri-Sense data trigger a sorting task?

They can contribute monitoring information to a configured herd-management workflow. The selected model's signals are mapped to the cow record; an approved rule or staff member then creates the task for the sorting gate. The connection requires suitable software interfaces and testing with the actual identification system.

Can a sorting gate weigh cows during passage?

A suitable walk-over scale can be included. Useful records depend on identifying the correct cow, stable weighing conditions, scale calibration and handling of incomplete measurements.

How wide should the single-file approach to a sorting gate be?

Start with the selected gate's clear-opening dimensions and the farm's largest cows. Published dairy handling installations use different widths; the approach must guide one cow at a time without squeezing or causing hesitation. Confirm the actual layout by checking cow movement, antenna coverage and the entry/exit transitions.

Conclusion

A dairy cow sorting gate should be selected around the parlor's peak cow flow, the destinations available after milking and the space needed for waiting animals. A defined single-file approach, correctly specified actuation and an RFID system tested in the installed steelwork help the gate maintain a steady sorting rhythm.

The management system then carries the work through from sorting request to route confirmation, pen arrival and the recorded treatment or breeding outcome. With the mechanical layout, data interfaces and acceptance tests agreed before ordering, the farm has a practical basis for comparing suppliers and expanding the system later.